hyphenate_SDK3.0  3.8.5
hyphenatejavaIMSDK
Classes | Public Member Functions | List of all members
com.hyphenate.chat.EMGroup Class Reference

Inherits com.hyphenate.chat.EMBase< T >.

Classes

enum  EMGroupPermissionType
 

Public Member Functions

 EMGroup (EMAGroup group)
 
String getGroupId ()
 
String getGroupName ()
 
String getDescription ()
 
boolean isPublic ()
 
boolean isAllowInvites ()
 
boolean isMemberAllowToInvite ()
 
boolean isMembersOnly ()
 
boolean isMemberOnly ()
 
int getMaxUserCount ()
 
boolean isMsgBlocked ()
 
String getOwner ()
 
String groupSubject ()
 
List< String > getMembers ()
 
int getMemberCount ()
 
String toString ()
 
List< String > getAdminList ()
 
List< String > getBlackList ()
 
List< String > getMuteList ()
 
List< String > getWhiteList ()
 
boolean isAllMemberMuted ()
 
String getExtension ()
 
String getAnnouncement ()
 
List< EMMucSharedFilegetShareFileList ()
 
EMGroupPermissionType getGroupPermissionType ()
 

Detailed Description

Group

Member Function Documentation

List<String> com.hyphenate.chat.EMGroup.getAdminList ( )

Get group admin list If not fetch the group's detail specification from server, the result may be empty Get Group detail, see EMGroupManager#getGroupFromServer(String)

Returns
List<String>
String com.hyphenate.chat.EMGroup.getAnnouncement ( )

Get group announcement If not get announcement from server, the return may be empty Get group announcement, can call the method of EMGroupManager#fetchGroupAnnouncement(String), also can call its asynchronous method of EMGroupManager#asyncFetchGroupAnnouncement(String, EMValueCallBack)

Returns
String
List<String> com.hyphenate.chat.EMGroup.getBlackList ( )

Get blacklist If not get blacklist from server, the return may be empty Fetch blacklist can call EMGroupManager#fetchGroupBlackList(String, int, int), call this method need owner or admin authority, also can call it's asynchronous method EMGroupManager#asyncFetchGroupBlackList(String, int, int, EMValueCallBack)

Returns
blacklist
String com.hyphenate.chat.EMGroup.getDescription ( )

Get group description

Returns
String
String com.hyphenate.chat.EMGroup.getExtension ( )

Get group customized extension

Returns
String
String com.hyphenate.chat.EMGroup.getGroupId ( )

Get group id

Returns
Group id
String com.hyphenate.chat.EMGroup.getGroupName ( )

Get group name

Returns
String
EMGroupPermissionType com.hyphenate.chat.EMGroup.getGroupPermissionType ( )

Get the current user's role in group

Returns
EMGroupPermissionType
int com.hyphenate.chat.EMGroup.getMaxUserCount ( )

Max group members capability It depends on group detail, if not fetch group detail, return 0

Returns
int com.hyphenate.chat.EMGroup.getMemberCount ( )

Get the member count

Returns
int
List<String> com.hyphenate.chat.EMGroup.getMembers ( )

Get the member list If not get members from server, the return may be empty You can get members in the flowing ways: (1) When member's number is less than 200, can use EMGroupManager#getGroupFromServer(String, boolean) to fetch, the second parameter pass in true, can get up to 200 members (2) Use the method of EMGroupManager#fetchGroupMembers(String, String, int) to get by page, also can use its asynchronous method of EMGroupManager#asyncFetchGroupMembers(String, String, int, EMValueCallBack) to get

Returns
The list of member IDs
List<String> com.hyphenate.chat.EMGroup.getMuteList ( )

Get group mute list If not get mute list from server, the return may be empty Fetch mute list can call EMGroupManager#fetchGroupMuteList(String, int, int), call this method need owner or admin authority, also can call it's asynchronous method EMGroupManager#asyncFetchGroupMuteList(String, int, int, EMValueCallBack)

Returns
Group mute list
String com.hyphenate.chat.EMGroup.getOwner ( )

Get the owner

Returns
String Group owner id
List<EMMucSharedFile> com.hyphenate.chat.EMGroup.getShareFileList ( )

Get group shared file list If not get shared file list from server, the return may be empty Fetch shared file list can call EMGroupManager#fetchGroupSharedFileList(String, int, int), EMGroupManager#asyncFetchGroupSharedFileList(String, int, int, EMValueCallBack)

Returns
Group shared file list
List<String> com.hyphenate.chat.EMGroup.getWhiteList ( )

Get white list If not get whitelist from server, the return may be empty Fetch whitelist can call EMGroupManager#fetchGroupWhiteList(String, EMValueCallBack), call this method need owner or admin authority

Returns
Group whitelist
String com.hyphenate.chat.EMGroup.groupSubject ( )

Subject of the group, need to get group detail

Returns
String
boolean com.hyphenate.chat.EMGroup.isAllMemberMuted ( )

Return if all member muted This method has limitations and is recommended to be used with caution The state is updated when a all-muted/all-unmuted callback is received, but only for the in-memory object. After the in-memory object is collected and pulled again from the database or server, the state becomes untrusted

Returns
boolean
boolean com.hyphenate.chat.EMGroup.isAllowInvites ( )

Get if the group member is allow invite the others

Returns
boolean
Deprecated:
Use isMemberAllowToInvite() instead
boolean com.hyphenate.chat.EMGroup.isMemberAllowToInvite ( )

Get if the group member is allow invite the others

Returns
boolean
boolean com.hyphenate.chat.EMGroup.isMemberOnly ( )

Group properties:members can not auto join the group, need join group application approved or received invitation Corresponding group style is the three other attributes besides EMGroupManager.EMGroupStyle#EMGroupStylePublicOpenJoin

Returns
boolean
boolean com.hyphenate.chat.EMGroup.isMembersOnly ( )

Group properties:members can not auto join the group, need join group application approved or received invitation Corresponding group style is the three other attributes besides EMGroupManager.EMGroupStyle#EMGroupStylePublicOpenJoin

Returns
boolean
Deprecated:
use isMemberOnly() instead
boolean com.hyphenate.chat.EMGroup.isMsgBlocked ( )

Get whether the group message is blocked For blocking group message see EMGroupManager#blockGroupMessage(String), unblocking see EMGroupManager#unblockGroupMessage(String)

Returns
boolean
boolean com.hyphenate.chat.EMGroup.isPublic ( )

Get if the group is public

Returns
boolean True is public group, otherwise is private group
String com.hyphenate.chat.EMGroup.toString ( )

Return group name or group id, this method can be used for adapter sorting

Returns
String

The documentation for this class was generated from the following file: