registerChannel method

void registerChannel(
  1. int id,
  2. AdWidgetNeedCloseCall? closeWidgetCall
)

Implementation

void registerChannel(int id,AdWidgetNeedCloseCall? closeWidgetCall) {
  _channel = MethodChannel('${AMPSPlatformViewRegistry.ampsSdkInterstitialViewId}$id');
  setMethodCallHandler(closeWidgetCall);
}