interstitial static method
void
interstitial(})
插全屏
Implementation
static void interstitial(
/// 广告位ID
String posId, {
/// 用户ID,选填
String userId = "",
/// 是否开启视频声音
bool videoSoundEnable = true,
/// 是否为预加载,默认false
/// 非预加载时,加载成功后直接播放
/// 预加载时仅回调成功/失败,需要搭配[showInterstitial]方法展示
bool isPreLoad = false,
/// FLAGS
int flags = 0,
/// 回调。具体事件见 example
Function(ZJEvent ret)? interstitialListener,
}) {
ZJSdkMessageChannel.setInterstitialListener(interstitialListener);
_sdkMethodChannel.invokeMethod("interstitial", {
"posId": posId,
"userId": userId,
"videoSoundEnable": videoSoundEnable,
"isPreLoad": isPreLoad,
"flags": flags,
});
}