getRoom method

Future<HMSRoom?> getRoom()

Get the HMSRoom room object that the local peer has currently joined. Returns null if no room is joined.

Implementation

Future<HMSRoom?> getRoom() async {
  var hmsRoomMap = await PlatformService.invokeMethod(PlatformMethod.getRoom);
  if (hmsRoomMap == null) {
    return null;
  }
  return HMSRoom.fromMap(hmsRoomMap);
}