exec method

  1. @override
void exec(
  1. String callbackName, [
  2. dynamic arguments
])
override

针对不同回调事件的处理

Implementation

@override
void exec(String callbackName, [arguments]) {
  if (callbackName == "onInterstitialShow" && onInterstitialShow != null) {
    onInterstitialShow!();
  } else if (callbackName == "onInterstitialShowFail" &&
      onInterstitialShowFail != null) {
    onInterstitialShowFail!();
  } else if (callbackName == "onInterstitialAdClick" &&
      onInterstitialAdClick != null) {
    onInterstitialAdClick!();
  } else if (callbackName == "onInterstitialClosed" &&
      onInterstitialClosed != null) {
    onInterstitialClosed!();
  }
}