showSplashAd static method

Future<bool> showSplashAd(
  1. String posId, {
  2. double timeout = 3.5,
})

展示开屏广告 posId 广告位 id logo 如果传值则展示底部logo,不传不展示,则全屏展示 timeout 加载超时时间

Implementation

static Future<bool> showSplashAd(String posId,
    {String? logo, double timeout = 3.5}) async {
  final bool result = await _methodChannel.invokeMethod(
    'showSplashAd',
    {
      'posId': posId,
      'logo': logo,
      'timeout': timeout,
    },
  );
  return result;
}