Class MutedMemberListFragment.Builder

  • Enclosing class:
    MutedMemberListFragment

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

      • Builder

        public Builder​(@NonNull
                       java.lang.String channelUrl)
        Constructor
        Parameters:
        channelUrl - the url of the channel will be implemented.
      • 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.
    • Method Detail

      • withArguments

        @NonNull
        public MutedMemberListFragment.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 MutedMemberListFragment.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 MutedMemberListFragment.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 MutedMemberListFragment.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.
      • setUseHeaderLeftButton

        @NonNull
        public MutedMemberListFragment.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 MutedMemberListFragment.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 MutedMemberListFragment.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
      • setHeaderRightButtonIconResId

        @NonNull
        public MutedMemberListFragment.Builder setHeaderRightButtonIconResId​(@DrawableRes
                                                                             int resId)
        Sets the icon on the right 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.
      • setHeaderRightButtonIcon

        @NonNull
        public MutedMemberListFragment.Builder setHeaderRightButtonIcon​(@DrawableRes
                                                                        int resId,
                                                                        @Nullable
                                                                        ColorStateList tint)
        Sets the icon on the right 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
      • setEmptyIcon

        @NonNull
        public MutedMemberListFragment.Builder setEmptyIcon​(@DrawableRes
                                                            int resId)
        Sets the icon when the data is not exists.
        Parameters:
        resId - the resource identifier of the drawable.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
      • setEmptyIcon

        @NonNull
        public MutedMemberListFragment.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.0
      • setEmptyText

        @NonNull
        public MutedMemberListFragment.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.
      • setErrorText

        @NonNull
        public MutedMemberListFragment.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
      • setOnHeaderLeftButtonClickListener

        @NonNull
        public MutedMemberListFragment.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 MutedMemberListFragment.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
      • setMutedMemberListAdapter

        @NonNull
        public <T extends MutedMemberListAdapterMutedMemberListFragment.Builder setMutedMemberListAdapter​(T adapter)
        Sets the muted member list adapter
        Parameters:
        adapter - the adapter for the channel's muted member list.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.0.0
      • setOnItemClickListener

        @NonNull
        public MutedMemberListFragment.Builder setOnItemClickListener​(@NonNull
                                                                      OnItemClickListener<com.sendbird.android.user.Member> itemClickListener)
        Sets the click listener on the item of channel user list.
        Parameters:
        itemClickListener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.0.0
      • setOnItemLongClickListener

        @NonNull
        public MutedMemberListFragment.Builder setOnItemLongClickListener​(@NonNull
                                                                          OnItemLongClickListener<com.sendbird.android.user.Member> itemLongClickListener)
        Sets the long click listener on the item of channel user list.
        Parameters:
        itemLongClickListener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.0.0
      • setOnActionItemClickListener

        @NonNull
        public MutedMemberListFragment.Builder setOnActionItemClickListener​(@NonNull
                                                                            OnItemClickListener<com.sendbird.android.user.Member> actionItemClickListener)
        Sets the action item click listener on the item of channel user list.
        Parameters:
        actionItemClickListener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        3.0.0
      • setOnProfileClickListener

        @NonNull
        public MutedMemberListFragment.Builder setOnProfileClickListener​(@NonNull
                                                                         OnItemClickListener<com.sendbird.android.user.Member> profileClickListener)
        Sets the click listener on the profile of message.
        Parameters:
        profileClickListener - The callback that will run.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        1.2.2
      • setUseUserProfile

        @NonNull
        public MutedMemberListFragment.Builder setUseUserProfile​(boolean useUserProfile)
        Sets whether the user profile uses.
        Parameters:
        useUserProfile - true if the user profile is shown when the profile image clicked, false otherwise.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        1.2.2
      • setLoadingDialogHandler

        @NonNull
        public MutedMemberListFragment.Builder setLoadingDialogHandler​(@NonNull
                                                                       LoadingDialogHandler loadingDialogHandler)
        Sets the custom loading dialog handler
        Parameters:
        loadingDialogHandler - Interface definition for a callback to be invoked before when the loading dialog is called.
        Returns:
        This Builder object to allow for chaining of calls to set methods.
        Since:
        1.2.5
        See Also:
        LoadingDialogHandler