Class ChatUIFragmentFactory

  • All Implemented Interfaces:

    
    public class ChatUIFragmentFactory
    
                        

    Factory for all UI screens provided by the ChatUI SDK.

    Every screen in the SDK is created through this factory.

    To replace any default screen with a custom Fragment, subclass this factory and override the corresponding newXxxFragment() method.

    Register the custom factory via setFragmentFactory.

    Since:

    5.12.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      MyProfileFragment newMyProfileFragment(Bundle args) Creates a new MyProfileFragment — displays the current user's own profile and allows editing personal information.
      UserProfileFragment newUserProfileFragment(Bundle args) Creates a new UserProfileFragment — displays another user's profile page.
      ApplyFriendListFragment newApplyFriendListFragment(Bundle args) Creates a new ApplyFriendListFragment — lists pending friend requests received from other users.
      GroupCreateFragment newGroupCreateFragment(Bundle args) Creates a new GroupCreateFragment — screen for creating a new group with an initial member selection.
      UpdateGenderFragment newUpdateGenderFragment(Bundle args) Creates a new UpdateGenderFragment — allows the user to update their gender in their profile.
      UpdateNickNameFragment newUpdateNikeNameFragment(Bundle args) Creates a new UpdateNickNameFragment — allows the user to update their display nickname.
      GroupProfileFragment newGroupProfileFragment(Bundle args) Creates a new GroupProfileFragment — displays group details and settings for a specific group.
      FriendSelectFragment newFriendSelectFragment(Bundle args) Creates a new FriendSelectFragment — picker for selecting one or more friends from the friend list.
      AddFriendListFragment newAddFriendListFragment(Bundle args) Creates a new AddFriendListFragment — search and add new friends by user ID or name.
      FriendListFragment newFriendListFragment(Bundle args) Creates a new FriendListFragment — shows the current user's complete friend list.
      FriendSearchFragment newFriendSearchFragment(Bundle args) Creates a new FriendSearchFragment — search for existing friends within the friend list.
      AddGroupMembersFragment newAddGroupMembersFragment(Bundle args) Creates a new AddGroupMembersFragment — picker for adding new members to an existing group.
      RemoveGroupMembersFragment newRemoveGroupMembersFragment(Bundle args) Creates a new RemoveGroupMembersFragment — picker for removing existing members from a group.
      GroupNicknameFragment newGroupNicknameFragment(Bundle args) Creates a new GroupNicknameFragment — allows the user to set their nickname within a specific group.
      GroupNameFragment newGroupNameFragment(Bundle args) Creates a new GroupNameFragment — allows the group owner to edit the group's name.
      GroupNoticeFragment newGroupNoticeFragment(Bundle args) Creates a new GroupNoticeFragment — displays and allows editing of the group announcement/notice.
      GroupMemberListFragment newGroupMemberListFragment(Bundle args) Creates a new GroupMemberListFragment — lists all members of a group.
      GroupFollowsFragment newGroupFollowsFragment(Bundle args) Creates a new GroupFollowsFragment — lists group members the user is following.
      GroupManagementFragment newGroupManagementFragment(Bundle args) Creates a new GroupManagementFragment — group management screen for owner/admin settings.
      GroupManagerListFragment newGroupManagerListFragment(Bundle args) Creates a new GroupManagerListFragment — lists the current group administrators.
      GroupAddFollowsFragment newGroupAddFollowsFragment(Bundle args) Creates a new GroupAddFollowsFragment — picker for selecting group members to follow.
      GroupAddManagerFragment newGroupAddManagerFragment(Bundle args) Creates a new GroupAddManagerFragment — picker for promoting group members to administrator.
      GroupTransferFragment newGroupTransferFragment(Bundle args) Creates a new GroupTransferFragment — transfers group ownership to another member.
      GroupListFragment newGroupListFragment(Bundle args) Creates a new GroupListFragment — shows all groups the current user has joined.
      GroupSearchFragment newGroupSearchFragment(Bundle args) Creates a new GroupSearchFragment — search for groups by name or group ID.
      GroupApplicationsFragment newGroupApplicationsFragment(Bundle args) Creates a new GroupApplicationsFragment — lists pending group join applications for review.
      MessageReadDetailFragment newMessageReadDetailFragment(Bundle args) Creates a new MessageReadDetailFragment — shows who has read a specific message (read-receipt detail).
      GroupMentionFragment newGroupMentionFragment(Bundle args) Creates a new GroupMentionFragment — picker for selecting group members to @mention in a message.
      ChannelFragment newChannelFragment(Bundle args) Creates a new ChannelFragment — the main conversation screen showing message history and an input bar.
      ChannelListFragment newChannelListFragment(Bundle args) Creates a new ChannelListFragment — the conversation list screen showing all recent conversations.
      SubChannelListFragment newSubChannelListFragment(Bundle args) Creates a new SubChannelListFragment — the sub-channel list screen for community/forum channels.
      ForwardSelectChannelFragment newForwardSelectFragment(Bundle args) Creates a new ForwardSelectChannelFragment — picker for selecting a conversation target to forward a message to.
      MentionMemberSelectFragment newMentionMemberSelectFragment(Bundle args) Creates a new MentionMemberSelectFragment — picker for selecting a group member to @mention.
      CombineMessagePreviewFragment newCombineMessagePreviewFragment(Bundle args) Creates a new CombineMessagePreviewFragment — preview screen for a combined (merged-forward) message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChatUIFragmentFactory

        ChatUIFragmentFactory()
    • Method Detail

      • newMyProfileFragment

         MyProfileFragment newMyProfileFragment(Bundle args)

        Creates a new MyProfileFragment — displays the current user's own profile and allows editing personal information.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new MyProfileFragment instance

      • newUserProfileFragment

         UserProfileFragment newUserProfileFragment(Bundle args)

        Creates a new UserProfileFragment — displays another user's profile page.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new UserProfileFragment instance

      • newApplyFriendListFragment

         ApplyFriendListFragment newApplyFriendListFragment(Bundle args)

        Creates a new ApplyFriendListFragment — lists pending friend requests received from other users.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new ApplyFriendListFragment instance

      • newGroupCreateFragment

         GroupCreateFragment newGroupCreateFragment(Bundle args)

        Creates a new GroupCreateFragment — screen for creating a new group with an initial member selection.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupCreateFragment instance

      • newUpdateGenderFragment

         UpdateGenderFragment newUpdateGenderFragment(Bundle args)

        Creates a new UpdateGenderFragment — allows the user to update their gender in their profile.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new UpdateGenderFragment instance

      • newUpdateNikeNameFragment

         UpdateNickNameFragment newUpdateNikeNameFragment(Bundle args)

        Creates a new UpdateNickNameFragment — allows the user to update their display nickname.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new UpdateNickNameFragment instance

      • newGroupProfileFragment

         GroupProfileFragment newGroupProfileFragment(Bundle args)

        Creates a new GroupProfileFragment — displays group details and settings for a specific group.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupProfileFragment instance

      • newFriendSelectFragment

         FriendSelectFragment newFriendSelectFragment(Bundle args)

        Creates a new FriendSelectFragment — picker for selecting one or more friends from the friend list.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new FriendSelectFragment instance

      • newAddFriendListFragment

         AddFriendListFragment newAddFriendListFragment(Bundle args)

        Creates a new AddFriendListFragment — search and add new friends by user ID or name.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new AddFriendListFragment instance

      • newFriendListFragment

         FriendListFragment newFriendListFragment(Bundle args)

        Creates a new FriendListFragment — shows the current user's complete friend list.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new FriendListFragment instance

      • newFriendSearchFragment

         FriendSearchFragment newFriendSearchFragment(Bundle args)

        Creates a new FriendSearchFragment — search for existing friends within the friend list.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new FriendSearchFragment instance

      • newAddGroupMembersFragment

         AddGroupMembersFragment newAddGroupMembersFragment(Bundle args)

        Creates a new AddGroupMembersFragment — picker for adding new members to an existing group.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new AddGroupMembersFragment instance

      • newRemoveGroupMembersFragment

         RemoveGroupMembersFragment newRemoveGroupMembersFragment(Bundle args)

        Creates a new RemoveGroupMembersFragment — picker for removing existing members from a group.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new RemoveGroupMembersFragment instance

      • newGroupNicknameFragment

         GroupNicknameFragment newGroupNicknameFragment(Bundle args)

        Creates a new GroupNicknameFragment — allows the user to set their nickname within a specific group.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupNicknameFragment instance

      • newGroupNameFragment

         GroupNameFragment newGroupNameFragment(Bundle args)

        Creates a new GroupNameFragment — allows the group owner to edit the group's name.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupNameFragment instance

      • newGroupNoticeFragment

         GroupNoticeFragment newGroupNoticeFragment(Bundle args)

        Creates a new GroupNoticeFragment — displays and allows editing of the group announcement/notice.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupNoticeFragment instance

      • newGroupMemberListFragment

         GroupMemberListFragment newGroupMemberListFragment(Bundle args)

        Creates a new GroupMemberListFragment — lists all members of a group.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupMemberListFragment instance

      • newGroupFollowsFragment

         GroupFollowsFragment newGroupFollowsFragment(Bundle args)

        Creates a new GroupFollowsFragment — lists group members the user is following.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupFollowsFragment instance

      • newGroupManagementFragment

         GroupManagementFragment newGroupManagementFragment(Bundle args)

        Creates a new GroupManagementFragment — group management screen for owner/admin settings.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupManagementFragment instance

      • newGroupManagerListFragment

         GroupManagerListFragment newGroupManagerListFragment(Bundle args)

        Creates a new GroupManagerListFragment — lists the current group administrators.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupManagerListFragment instance

      • newGroupAddFollowsFragment

         GroupAddFollowsFragment newGroupAddFollowsFragment(Bundle args)

        Creates a new GroupAddFollowsFragment — picker for selecting group members to follow.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupAddFollowsFragment instance

      • newGroupAddManagerFragment

         GroupAddManagerFragment newGroupAddManagerFragment(Bundle args)

        Creates a new GroupAddManagerFragment — picker for promoting group members to administrator.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupAddManagerFragment instance

      • newGroupTransferFragment

         GroupTransferFragment newGroupTransferFragment(Bundle args)

        Creates a new GroupTransferFragment — transfers group ownership to another member.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupTransferFragment instance

      • newGroupListFragment

         GroupListFragment newGroupListFragment(Bundle args)

        Creates a new GroupListFragment — shows all groups the current user has joined.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupListFragment instance

      • newGroupSearchFragment

         GroupSearchFragment newGroupSearchFragment(Bundle args)

        Creates a new GroupSearchFragment — search for groups by name or group ID.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupSearchFragment instance

      • newGroupApplicationsFragment

         GroupApplicationsFragment newGroupApplicationsFragment(Bundle args)

        Creates a new GroupApplicationsFragment — lists pending group join applications for review.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupApplicationsFragment instance

      • newMessageReadDetailFragment

         MessageReadDetailFragment newMessageReadDetailFragment(Bundle args)

        Creates a new MessageReadDetailFragment — shows who has read a specific message (read-receipt detail).

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new MessageReadDetailFragment instance

      • newGroupMentionFragment

         GroupMentionFragment newGroupMentionFragment(Bundle args)

        Creates a new GroupMentionFragment — picker for selecting group members to @mention in a message.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new GroupMentionFragment instance

      • newChannelFragment

         ChannelFragment newChannelFragment(Bundle args)

        Creates a new ChannelFragment — the main conversation screen showing message history and an input bar.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new ChannelFragment instance

      • newChannelListFragment

         ChannelListFragment newChannelListFragment(Bundle args)

        Creates a new ChannelListFragment — the conversation list screen showing all recent conversations.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new ChannelListFragment instance

      • newSubChannelListFragment

         SubChannelListFragment newSubChannelListFragment(Bundle args)

        Creates a new SubChannelListFragment — the sub-channel list screen for community/forum channels.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new SubChannelListFragment instance

      • newForwardSelectFragment

         ForwardSelectChannelFragment newForwardSelectFragment(Bundle args)

        Creates a new ForwardSelectChannelFragment — picker for selecting a conversation target to forward a message to.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new ForwardSelectChannelFragment instance

      • newMentionMemberSelectFragment

         MentionMemberSelectFragment newMentionMemberSelectFragment(Bundle args)

        Creates a new MentionMemberSelectFragment — picker for selecting a group member to @mention.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new MentionMemberSelectFragment instance

      • newCombineMessagePreviewFragment

         CombineMessagePreviewFragment newCombineMessagePreviewFragment(Bundle args)

        Creates a new CombineMessagePreviewFragment — preview screen for a combined (merged-forward) message.

        Parameters:
        args - arguments passed to the fragment
        Returns:

        a new CombineMessagePreviewFragment instance