notifyListener method

  1. @override
void notifyListener(
  1. MethodCall call
)
override

Implementation

@override
void notifyListener(MethodCall call) {
  if (listener != null) {
    AdfurikunAppOpenAdCallback? callback = _callbackMap[call.method];
    String? appId = call.arguments[KEY_APP_ID];
    String? adNetworkKey = call.arguments[KEY_AD_NETWORK_KEY];
    int? errorCode = call.arguments[KEY_ERROR_CODE];
    List<AdNetworkError>? adNetworkErrorList = convertAdNetworkErrorList(call.arguments[KEY_AD_NETWORK_ERROR_LIST]);
    listener!(callback, appId, adNetworkKey, errorCode, adNetworkErrorList);
  } else {
    print('AdfurikunAppOpenAdListener is null');
  }
}