showSplashAd method

Future<void> showSplashAd(
  1. String adUnitId, {
  2. String className = "",
  3. String? sceneId,
})

展示广告:adUnitId 广告位ID ,className 用户自定义模版名称 此接口仅支持iOS

Implementation

Future<void> showSplashAd(String adUnitId,
    {String className = "", String? sceneId}) async {
  Map arguments = {};
  arguments['adUnitID'] = adUnitId;
  arguments['className'] = className;
  if (sceneId != null) {
    arguments['sceneId'] = sceneId;
  }
  TradplusSdk.channel.invokeMethod('splash_show', arguments);
}