Class RegisterOperatorFragment.Builder

  • Enclosing class:
    RegisterOperatorFragment

    public static class RegisterOperatorFragment.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder​(@NonNull
                       java.lang.String channelUrl)
      • 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:
        1.2.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:
        1.2.0
    • Method Detail

      • withArguments

        @NonNull
        public RegisterOperatorFragment.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.0.0
      • setHeaderTitle

        @NonNull
        public RegisterOperatorFragment.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.
      • setUseHeader

        @NonNull
        public RegisterOperatorFragment.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.
      • setUseHeaderRightButton

        @NonNull
        public RegisterOperatorFragment.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:
        1.2.3
      • setUseHeaderLeftButton

        @NonNull
        public RegisterOperatorFragment.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.
      • setHeaderLeftButtonIconResId

        @NonNull
        public RegisterOperatorFragment.Builder setHeaderLeftButtonIconResId​(@DrawableRes
                                                                             int resId)
        Sets the icon on the left button of the header.
        Parameters:
        resId - the resource identifier of the drawable.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
      • setHeaderLeftButtonIcon

        @NonNull
        public RegisterOperatorFragment.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:
        2.1.0
      • setRightButtonText

        @NonNull
        public RegisterOperatorFragment.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 RegisterOperatorFragment.Builder setCustomPagedQueryHandler​(@NonNull
                                                                           PagedQueryHandler<com.sendbird.android.user.Member> 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.0.0
      • setRegisterOperatorListAdapter

        @NonNull
        public RegisterOperatorFragment.Builder setRegisterOperatorListAdapter​(@NonNull
                                                                               RegisterOperatorListAdapter adapter)
        Sets the user list adapter.
        Parameters:
        adapter - the adapter for the user list.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.0.0
      • setOnHeaderLeftButtonClickListener

        @NonNull
        public RegisterOperatorFragment.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.0.0
      • setOnHeaderRightButtonClickListener

        @NonNull
        public RegisterOperatorFragment.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.0.0
      • setEmptyIcon

        @NonNull
        public RegisterOperatorFragment.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:
        2.1.6
      • setEmptyText

        @NonNull
        public RegisterOperatorFragment.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:
        2.1.6
      • setErrorText

        @NonNull
        public RegisterOperatorFragment.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.0.0
      • setOnUserSelectChangedListener

        @NonNull
        public RegisterOperatorFragment.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.0.0
      • setOnUserSelectionCompleteListener

        @NonNull
        public RegisterOperatorFragment.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.0.0