getInstance static method

Future<BaiduRtcCloud?> getInstance(
  1. BRTCInitParams params
)

初始化实例

Implementation

static Future<BaiduRtcCloud?> getInstance(BRTCInitParams params) async {
  if (bdRtcCloud == null) {
    bdRtcCloud = new BaiduRtcCloud();
    await bRTCPluginChannel.invokeMethod('initWithAppID', {
      "appId": params.appId,
      "token": params.token,
      "cpuType": params.cpuType,
      "isEnableSoLaterLoad": params.isEnableSoLaterLoad,
    });
  }
  return bdRtcCloud;
}