initAd static method

Future<bool> initAd(
  1. String appKey, {
  2. bool isDebug = false,
})

初始化广告 appKey 广告配置 appKey isDebug 是否为测试模式

Implementation

static Future<bool> initAd(String appKey, {bool isDebug = false}) async {
  final bool result = await _channel.invokeMethod(
    'initSdk',
    {'appKey': appKey, 'isDebug': isDebug},
  );
  return result;
}