iOS and Mac

更新时间:
复制 MD 格式

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.

    - (NSDictionary *)getUserInfo:(NSString *)uid;
    Parameter description
    ParameterTypeDescription
    uidNSString *The ID of the user.
  • isUserOnline: queries whether a user is online.

    - (BOOL)isUserOnline:(NSString *)uid;
    Parameter description
    ParameterTypeDescription
    uidNSString *The ID of the user.

    Return result

    YES indicates online and NO indicates not online.