Class OpenChannelRegisterOperatorFragment.Builder

    • Constructor Detail

      • Builder

        public Builder​(@NonNull
                       java.lang.String channelUrl)
        Constructor
        Parameters:
        channelUrl - the url of the channel will be implemented.
        Since:
        3.1.0
      • Builder

        public Builder​(@NonNull
                       java.lang.String channelUrl,
                       @NonNull
                       SendbirdUIKit.ThemeMode themeMode)
        Constructor
        Parameters:
        channelUrl - the url of the channel will be implemented.
        themeMode - SendbirdUIKit.ThemeMode
        Since:
        3.1.0
      • Builder

        public Builder​(@NonNull
                       java.lang.String channelUrl,
                       @StyleRes
                       int customThemeResId)
        Constructor
        Parameters:
        channelUrl - the url of the channel will be implemented.
        customThemeResId - the resource identifier for custom theme.
        Since:
        3.1.0
    • Method Detail

      • withArguments

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder withArguments​(@NonNull
                                                                         Bundle args)
        Sets arguments to this fragment.
        Parameters:
        args - the arguments supplied when the fragment was instantiated.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setHeaderTitle

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setHeaderTitle​(@NonNull
                                                                          java.lang.String title)
        Sets the title of the header.
        Parameters:
        title - text to be displayed.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setUseHeader

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setUseHeader​(boolean useHeader)
        Sets whether the header is used.
        Parameters:
        useHeader - true if the header is used, false otherwise.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setUseHeaderRightButton

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setUseHeaderRightButton​(boolean useHeaderRightButton)
        Sets whether the right button of the header is used.
        Parameters:
        useHeaderRightButton - true if the right button of the header is used, false otherwise.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setUseHeaderLeftButton

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setUseHeaderLeftButton​(boolean useHeaderLeftButton)
        Sets whether the left button of the header is used.
        Parameters:
        useHeaderLeftButton - true if the left button of the header is used, false otherwise.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
      • setHeaderLeftButtonIcon

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setHeaderLeftButtonIcon​(@DrawableRes
                                                                                   int resId,
                                                                                   @Nullable
                                                                                   ColorStateList tint)
        Sets the icon on the left button of the header.
        Parameters:
        resId - the resource identifier of the drawable.
        tint - Color state list to use for tinting this resource, or null to clear the tint.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setRightButtonText

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setRightButtonText​(@NonNull
                                                                              java.lang.String rightButtonText)
        Sets the right button text of the header.
        Parameters:
        rightButtonText - text to be displayed to the right button.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
      • setCustomPagedQueryHandler

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setCustomPagedQueryHandler​(@NonNull
                                                                                      PagedQueryHandler<com.sendbird.android.user.User> handler)
        Sets the handler that loads the list of user.
        Parameters:
        handler - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setOnHeaderLeftButtonClickListener

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setOnHeaderLeftButtonClickListener​(@NonNull
                                                                                              View.OnClickListener listener)
        Sets the click listener on the left button of the header.
        Parameters:
        listener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setOnHeaderRightButtonClickListener

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setOnHeaderRightButtonClickListener​(@NonNull
                                                                                               View.OnClickListener listener)
        Sets the click listener on the right button of the header.
        Parameters:
        listener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setEmptyIcon

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setEmptyIcon​(@DrawableRes
                                                                        int resId,
                                                                        @Nullable
                                                                        ColorStateList tint)
        Sets the icon when the data is not exists.
        Parameters:
        resId - the resource identifier of the drawable.
        tint - Color state list to use for tinting this resource, or null to clear the tint.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setEmptyText

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setEmptyText​(@StringRes
                                                                        int resId)
        Sets the text when the data is not exists
        Parameters:
        resId - the resource identifier of text to be displayed.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setErrorText

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setErrorText​(@StringRes
                                                                        int resId)
        Sets the text when error occurs
        Parameters:
        resId - the resource identifier of text to be displayed.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setOnUserSelectChangedListener

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setOnUserSelectChangedListener​(@Nullable
                                                                                          OnUserSelectChangedListener userSelectChangedListener)
        Register a callback to be invoked when the user is selected.
        Parameters:
        userSelectChangedListener - The callback that will run
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0
      • setOnUserSelectionCompleteListener

        @NonNull
        public OpenChannelRegisterOperatorFragment.Builder setOnUserSelectionCompleteListener​(@Nullable
                                                                                              OnUserSelectionCompleteListener userSelectionCompleteListener)
        Register a callback to be invoked when selecting users is completed.
        Parameters:
        userSelectionCompleteListener - The callback that will run
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.1.0