onSwitchRoom property
final
Result of Room Switching
You can call the switchRoom()
API in TRTCCloud
to switch from one
room to another.
After the switching, the SDK will return the onSwitchRoom()
event callback.
- Parameters:
- errCode(int):
- Error code.
ERR_NULL
indicates a successful switch. For more information, please see Error Codes.
- Error code.
- errMsg(String):
- Error message.
- errCode(int):
Implementation
final void Function(int errCode, String errMsg)? onSwitchRoom;