onLiveRoleSwitched property

dynamic Function(RCRTCRole role, int code, String? errMsg)? onLiveRoleSwitched
getter/setter pair

ZH

切换直播角色回调 @param current 当前角色 @param code 错误码 @param errMsg 错误消息

EN

Live role switch callback @param current Current role @param code Error code @param errMsg Error message

Implementation

Function(RCRTCRole role, int code, String? errMsg)? onLiveRoleSwitched;