onSubscribed property

dynamic Function(String userId, RCRTCMediaType type, int code, String? errMsg)? onSubscribed
getter/setter pair

ZH

订阅远端用户发布的资源操作回调 @param userId 远端用户UserId @param type 资源类型 @param code 0: 调用成功, 非0: 失败 @param errMsg 失败原因

EN

Subscribe to remote user's resource operation callbacks @param userId Remote user ID @param type Resource type @param code 0: Success, non-zero: Failure @param errMsg Failure reason

Implementation

Function(String userId, RCRTCMediaType type, int code, String? errMsg)?
onSubscribed;