private static void interstitialSuccessCallback(IntPtr interstitialHandlePtr, string networkName, double ecpm) { GCHandle interstitialHandle = (GCHandle)interstitialHandlePtr; AMRInterstitialViewDelegate delegateObject = interstitialHandle.Target as AMRInterstitialViewDelegate; delegateObject.didReceiveInterstitial(networkName, ecpm); }
void onAdLoaded(string networkName, double ecpm) { delegateObj.didReceiveInterstitial(networkName, ecpm); }