Class GroupJoinedPagedHandler
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.base.interfaces.OnPagedDataLoader
public class GroupJoinedPagedHandler extends MultiDataHandler implements OnPagedDataLoader
Paged handler for fetching joined groups.
Note: Call stop to release resources when done.
- Since:
5.12.2
-
-
Field Summary
Fields Modifier and Type Field Description public final static MultiDataHandler.DataKey<List<GroupInfo>>KEY_GET_JOINED_GROUPS_BY_ROLEprotected volatile booleanisAlive
-
Constructor Summary
Constructors Constructor Description GroupJoinedPagedHandler()GroupJoinedPagedHandler(int pageCount)
-
Method Summary
Modifier and Type Method Description voidgetJoinedGroupsByRole(@NonNull() GroupMemberRole groupMemberRole)Gets joined groups by role. voidloadNext(OnDataChangeListener<Boolean> listener)Loads the next page of data. booleanhasNext()Returns whether there is a next page. -
Methods inherited from class ai.nexconn.chatui.base.BaseHandler
isAlive -
Methods inherited from class ai.nexconn.chatui.base.MultiDataHandler
addDataChangeListener, notifyDataChange, notifyDataError, notifyDataError, replaceDataChangeListener, stop -
Methods inherited from class ai.nexconn.chatui.base.interfaces.OnPagedDataLoader
hasPrevious, loadPrevious -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getJoinedGroupsByRole
void getJoinedGroupsByRole(@NonNull() GroupMemberRole groupMemberRole)
Gets joined groups by role.
- Parameters:
groupMemberRole- the group member role
-
loadNext
void loadNext(OnDataChangeListener<Boolean> listener)
Loads the next page of data.
- Parameters:
listener- the load completion listener
-
hasNext
boolean hasNext()
Returns whether there is a next page.
- Returns:
true if more data is available
-
-
-
-