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(Bundle args)Creates a new MyProfileFragment — displays the current user's own profile and allows editing personal information. UserProfileFragmentnewUserProfileFragment(Bundle args)Creates a new UserProfileFragment — displays another user's profile page. ApplyFriendListFragmentnewApplyFriendListFragment(Bundle args)Creates a new ApplyFriendListFragment — lists pending friend requests received from other users. GroupCreateFragmentnewGroupCreateFragment(Bundle args)Creates a new GroupCreateFragment — screen for creating a new group with an initial member selection. UpdateGenderFragmentnewUpdateGenderFragment(Bundle args)Creates a new UpdateGenderFragment — allows the user to update their gender in their profile. UpdateNickNameFragmentnewUpdateNikeNameFragment(Bundle args)Creates a new UpdateNickNameFragment — allows the user to update their display nickname. GroupProfileFragmentnewGroupProfileFragment(Bundle args)Creates a new GroupProfileFragment — displays group details and settings for a specific group. FriendSelectFragmentnewFriendSelectFragment(Bundle args)Creates a new FriendSelectFragment — picker for selecting one or more friends from the friend list. AddFriendListFragmentnewAddFriendListFragment(Bundle args)Creates a new AddFriendListFragment — search and add new friends by user ID or name. FriendListFragmentnewFriendListFragment(Bundle args)Creates a new FriendListFragment — shows the current user's complete friend list. FriendSearchFragmentnewFriendSearchFragment(Bundle args)Creates a new FriendSearchFragment — search for existing friends within the friend list. AddGroupMembersFragmentnewAddGroupMembersFragment(Bundle args)Creates a new AddGroupMembersFragment — picker for adding new members to an existing group. RemoveGroupMembersFragmentnewRemoveGroupMembersFragment(Bundle args)Creates a new RemoveGroupMembersFragment — picker for removing existing members from a group. GroupNicknameFragmentnewGroupNicknameFragment(Bundle args)Creates a new GroupNicknameFragment — allows the user to set their nickname within a specific group. GroupNameFragmentnewGroupNameFragment(Bundle args)Creates a new GroupNameFragment — allows the group owner to edit the group's name. GroupNoticeFragmentnewGroupNoticeFragment(Bundle args)Creates a new GroupNoticeFragment — displays and allows editing of the group announcement/notice. GroupMemberListFragmentnewGroupMemberListFragment(Bundle args)Creates a new GroupMemberListFragment — lists all members of a group. GroupFollowsFragmentnewGroupFollowsFragment(Bundle args)Creates a new GroupFollowsFragment — lists group members the user is following. GroupManagementFragmentnewGroupManagementFragment(Bundle args)Creates a new GroupManagementFragment — group management screen for owner/admin settings. GroupManagerListFragmentnewGroupManagerListFragment(Bundle args)Creates a new GroupManagerListFragment — lists the current group administrators. GroupAddFollowsFragmentnewGroupAddFollowsFragment(Bundle args)Creates a new GroupAddFollowsFragment — picker for selecting group members to follow. GroupAddManagerFragmentnewGroupAddManagerFragment(Bundle args)Creates a new GroupAddManagerFragment — picker for promoting group members to administrator. GroupTransferFragmentnewGroupTransferFragment(Bundle args)Creates a new GroupTransferFragment — transfers group ownership to another member. GroupListFragmentnewGroupListFragment(Bundle args)Creates a new GroupListFragment — shows all groups the current user has joined. GroupSearchFragmentnewGroupSearchFragment(Bundle args)Creates a new GroupSearchFragment — search for groups by name or group ID. GroupApplicationsFragmentnewGroupApplicationsFragment(Bundle args)Creates a new GroupApplicationsFragment — lists pending group join applications for review. MessageReadDetailFragmentnewMessageReadDetailFragment(Bundle args)Creates a new MessageReadDetailFragment — shows who has read a specific message (read-receipt detail). GroupMentionFragmentnewGroupMentionFragment(Bundle args)Creates a new GroupMentionFragment — picker for selecting group members to @mention in a message. ChannelFragmentnewChannelFragment(Bundle args)Creates a new ChannelFragment — the main conversation screen showing message history and an input bar. ChannelListFragmentnewChannelListFragment(Bundle args)Creates a new ChannelListFragment — the conversation list screen showing all recent conversations. SubChannelListFragmentnewSubChannelListFragment(Bundle args)Creates a new SubChannelListFragment — the sub-channel list screen for community/forum channels. ForwardSelectChannelFragmentnewForwardSelectFragment(Bundle args)Creates a new ForwardSelectChannelFragment — picker for selecting a conversation target to forward a message to. MentionMemberSelectFragmentnewMentionMemberSelectFragment(Bundle args)Creates a new MentionMemberSelectFragment — picker for selecting a group member to @mention. CombineMessagePreviewFragmentnewCombineMessagePreviewFragment(Bundle args)Creates a new CombineMessagePreviewFragment — preview screen for a combined (merged-forward) message. -
-
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
-
-
-
-