onSwitchRoom property

(void Function(int errCode, String errMsg)?) onSwitchRoom
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.
    • errMsg(String):
      • Error message.

Implementation

final void Function(int errCode, String errMsg)? onSwitchRoom;