registerChannel method

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

Implementation

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