showAd method
插屏广告显示调用方法
Implementation
Future<void> showAd() async {
if (!await _ensureCreated()) return;
final result = await AdscopeSdk.invokeMethod(
AMPSAdSdkMethodNames.interstitialShowAd, _instanceOnlyArgs());
if (result == false) {
throw PlatformException(
code: 'SHOW_FAILED', message: 'Interstitial could not be shown');
}
}