RTC SDK provides methods to allow you to manage channel members. You can obtain the list of remote online users, query remote user information, and query whether a user is online. This topic describes how to manage channel members.
Implementation methods
You can use the following methods to manage channel members. For more information, see AliRtcEngine interface.
getOnlineRemoteUsers: Obtains the list of remote online users.
- (NSArray<NSString *> *)getOnlineRemoteUsers;Return result
Returns a list of user IDs.
getUserInfo: queries remote user information.
Parameter description- (NSDictionary *)getUserInfo:(NSString *)uid;Parameter Type Description uid NSString * The ID of the user. isUserOnline: queries whether a user is online.
Parameter description- (BOOL)isUserOnline:(NSString *)uid;Parameter Type Description uid NSString * The ID of the user. Return result
YES indicates online and NO indicates not online.
该文章对您有帮助吗?