destroy method

Future destroy()

@detail api @author luomingkang @brief 退出并销毁调用 createGameRoom{@link #RTCEngine#createGameRoom} 所创建的游戏房间实例。

Implementation

Future destroy() async {
  $a() => ($instance as $p_a.IGameRoom).destroy();
  $i() => ($instance as $p_i.ByteRTCGameRoom).destroy();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}