Class ChatUIFragmentFactory
-
- All Implemented Interfaces:
public class ChatUIFragmentFactoryFactory 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
-
-
Constructor Summary
Constructors Constructor Description ChatUIFragmentFactory()
-
Method Summary
Modifier and Type Method Description MyProfileFragmentnewMyProfileFragment(@NonNull() Bundle args)Creates a new MyProfileFragment — displays the current user's own profile and allows editing personal information. UserProfileFragmentnewUserProfileFragment(@NonNull() Bundle args)Creates a new UserProfileFragment — displays another user's profile page. ApplyFriendListFragmentnewApplyFriendListFragment(@NonNull() Bundle args)Creates a new ApplyFriendListFragment — lists pending friend requests received from other users. GroupCreateFragmentnewGroupCreateFragment(@NonNull() Bundle args)Creates a new GroupCreateFragment — screen for creating a new group with an initial member selection. UpdateGenderFragmentnewUpdateGenderFragment(@NonNull() Bundle args)Creates a new UpdateGenderFragment — allows the user to update their gender in their profile. UpdateNickNameFragmentnewUpdateNikeNameFragment(@NonNull() Bundle args)Creates a new UpdateNickNameFragment — allows the user to update their display nickname. GroupProfileFragmentnewGroupProfileFragment(@NonNull() Bundle args)Creates a new GroupProfileFragment — displays group details and settings for a specific group. FriendSelectFragmentnewFriendSelectFragment(@NonNull() Bundle args)Creates a new FriendSelectFragment — picker for selecting one or more friends from the friend list. AddFriendListFragmentnewAddFriendListFragment(@NonNull() Bundle args)Creates a new AddFriendListFragment — search and add new friends by user ID or name. FriendListFragmentnewFriendListFragment(@NonNull() Bundle args)Creates a new FriendListFragment — shows the current user's complete friend list. FriendSearchFragmentnewFriendSearchFragment(@NonNull() Bundle args)Creates a new FriendSearchFragment — search for existing friends within the friend list. AddGroupMembersFragmentnewAddGroupMembersFragment(@NonNull() Bundle args)Creates a new AddGroupMembersFragment — picker for adding new members to an existing group. RemoveGroupMembersFragmentnewRemoveGroupMembersFragment(@NonNull() Bundle args)Creates a new RemoveGroupMembersFragment — picker for removing existing members from a group. GroupNicknameFragmentnewGroupNicknameFragment(@NonNull() Bundle args)Creates a new GroupNicknameFragment — allows the user to set their nickname within a specific group. GroupNameFragmentnewGroupNameFragment(@NonNull() Bundle args)Creates a new GroupNameFragment — allows the group owner to edit the group's name. GroupNoticeFragmentnewGroupNoticeFragment(@NonNull() Bundle args)Creates a new GroupNoticeFragment — displays and allows editing of the group announcement/notice. GroupMemberListFragmentnewGroupMemberListFragment(@NonNull() Bundle args)Creates a new GroupMemberListFragment — lists all members of a group. GroupFollowsFragmentnewGroupFollowsFragment(@NonNull() Bundle args)Creates a new GroupFollowsFragment — lists group members the user is following. GroupManagementFragmentnewGroupManagementFragment(@NonNull() Bundle args)Creates a new GroupManagementFragment — group management screen for owner/admin settings. GroupManagerListFragmentnewGroupManagerListFragment(@NonNull() Bundle args)Creates a new GroupManagerListFragment — lists the current group administrators. GroupAddFollowsFragmentnewGroupAddFollowsFragment(@NonNull() Bundle args)Creates a new GroupAddFollowsFragment — picker for selecting group members to follow. GroupAddManagerFragmentnewGroupAddManagerFragment(@NonNull() Bundle args)Creates a new GroupAddManagerFragment — picker for promoting group members to administrator. GroupTransferFragmentnewGroupTransferFragment(@NonNull() Bundle args)Creates a new GroupTransferFragment — transfers group ownership to another member. GroupListFragmentnewGroupListFragment(@NonNull() Bundle args)Creates a new GroupListFragment — shows all groups the current user has joined. GroupSearchFragmentnewGroupSearchFragment(@NonNull() Bundle args)Creates a new GroupSearchFragment — search for groups by name or group ID. GroupApplicationsFragmentnewGroupApplicationsFragment(@NonNull() Bundle args)Creates a new GroupApplicationsFragment — lists pending group join applications for review. MessageReadDetailFragmentnewMessageReadDetailFragment(@NonNull() Bundle args)Creates a new MessageReadDetailFragment — shows who has read a specific message (read-receipt detail). GroupMentionFragmentnewGroupMentionFragment(@NonNull() Bundle args)Creates a new GroupMentionFragment — picker for selecting group members to @mention in a message. ChannelFragmentnewChannelFragment(@NonNull() Bundle args)Creates a new ChannelFragment — the main conversation screen showing message history and an input bar. ChannelListFragmentnewChannelListFragment(@NonNull() Bundle args)Creates a new ChannelListFragment — the conversation list screen showing all recent conversations. SubChannelListFragmentnewSubChannelListFragment(@NonNull() Bundle args)Creates a new SubChannelListFragment — the sub-channel list screen for community/forum channels. ForwardSelectChannelFragmentnewForwardSelectFragment(@NonNull() Bundle args)Creates a new ForwardSelectChannelFragment — picker for selecting a conversation target to forward a message to. MentionMemberSelectFragmentnewMentionMemberSelectFragment(@NonNull() Bundle args)Creates a new MentionMemberSelectFragment — picker for selecting a group member to @mention. CombineMessagePreviewFragmentnewCombineMessagePreviewFragment(@NonNull() Bundle args)Creates a new CombineMessagePreviewFragment — preview screen for a combined (merged-forward) message. -
-
Method Detail
-
newMyProfileFragment
@NonNull() MyProfileFragment newMyProfileFragment(@NonNull() 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
@NonNull() UserProfileFragment newUserProfileFragment(@NonNull() 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
@NonNull() ApplyFriendListFragment newApplyFriendListFragment(@NonNull() 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
@NonNull() GroupCreateFragment newGroupCreateFragment(@NonNull() 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
@NonNull() UpdateGenderFragment newUpdateGenderFragment(@NonNull() 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
@NonNull() UpdateNickNameFragment newUpdateNikeNameFragment(@NonNull() 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
@NonNull() GroupProfileFragment newGroupProfileFragment(@NonNull() 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
@NonNull() FriendSelectFragment newFriendSelectFragment(@NonNull() 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
@NonNull() AddFriendListFragment newAddFriendListFragment(@NonNull() 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
@NonNull() FriendListFragment newFriendListFragment(@NonNull() 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
@NonNull() FriendSearchFragment newFriendSearchFragment(@NonNull() 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
@NonNull() AddGroupMembersFragment newAddGroupMembersFragment(@NonNull() 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
@NonNull() RemoveGroupMembersFragment newRemoveGroupMembersFragment(@NonNull() 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
@NonNull() GroupNicknameFragment newGroupNicknameFragment(@NonNull() 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
@NonNull() GroupNameFragment newGroupNameFragment(@NonNull() 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
@NonNull() GroupNoticeFragment newGroupNoticeFragment(@NonNull() 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
@NonNull() GroupMemberListFragment newGroupMemberListFragment(@NonNull() 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
@NonNull() GroupFollowsFragment newGroupFollowsFragment(@NonNull() 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
@NonNull() GroupManagementFragment newGroupManagementFragment(@NonNull() 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
@NonNull() GroupManagerListFragment newGroupManagerListFragment(@NonNull() Bundle args)
Creates a new GroupManagerListFragment — lists the current group administrators.
- Parameters:
args- arguments passed to the fragment- Returns:
a new GroupManagerListFragment instance
-
newGroupAddFollowsFragment
@NonNull() GroupAddFollowsFragment newGroupAddFollowsFragment(@NonNull() 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
@NonNull() GroupAddManagerFragment newGroupAddManagerFragment(@NonNull() 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
@NonNull() GroupTransferFragment newGroupTransferFragment(@NonNull() 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
@NonNull() GroupListFragment newGroupListFragment(@NonNull() 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
@NonNull() GroupSearchFragment newGroupSearchFragment(@NonNull() 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
@NonNull() GroupApplicationsFragment newGroupApplicationsFragment(@NonNull() 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
@NonNull() MessageReadDetailFragment newMessageReadDetailFragment(@NonNull() 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
@NonNull() GroupMentionFragment newGroupMentionFragment(@NonNull() 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
@NonNull() ChannelFragment newChannelFragment(@NonNull() 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
@NonNull() ChannelListFragment newChannelListFragment(@NonNull() 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
@NonNull() SubChannelListFragment newSubChannelListFragment(@NonNull() 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
@NonNull() ForwardSelectChannelFragment newForwardSelectFragment(@NonNull() 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
@NonNull() MentionMemberSelectFragment newMentionMemberSelectFragment(@NonNull() 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
@NonNull() CombineMessagePreviewFragment newCombineMessagePreviewFragment(@NonNull() 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
-
-
-
-