public static void WillLeaveApplication(this IGADInterstitialDelegate This, GADInterstitial ad) { if (ad == null) { throw new ArgumentNullException("ad"); } MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("interstitialWillLeaveApplication:"), ad.Handle); }
public static void DidFailToReceiveAd (this IGADInterstitialDelegate This, GADInterstitial sender, GADRequestError error) { if (sender == null) throw new ArgumentNullException ("sender"); if (error == null) throw new ArgumentNullException ("error"); MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("interstitial:didFailToReceiveAdWithError:"), sender.Handle, error.Handle); }
public static void DidFailToReceiveAd(this IGADInterstitialDelegate This, GADInterstitial sender, GADRequestError error) { if (sender == null) { throw new ArgumentNullException("sender"); } if (error == null) { throw new ArgumentNullException("error"); } MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, Selector.GetHandle("interstitial:didFailToReceiveAdWithError:"), sender.Handle, error.Handle); }
public static void InterstitialDidReceiveAppEvent (this IGADAppEventDelegate This, GADInterstitial interstitial, string name, string info) { if (interstitial == null) throw new ArgumentNullException ("interstitial"); if (name == null) throw new ArgumentNullException ("name"); if (info == null) throw new ArgumentNullException ("info"); var nsname = NSString.CreateNative (name); var nsinfo = NSString.CreateNative (info); MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (This.Handle, Selector.GetHandle ("interstitial:didReceiveAppEvent:withInfo:"), interstitial.Handle, nsname, nsinfo); NSString.ReleaseNative (nsname); NSString.ReleaseNative (nsinfo); }
public void Show(string adUnit) { _adInterstitial = new GADInterstitial(adUnit); var request = GADRequest.Request; _adInterstitial.AdReceived += (sender, args) => { if (_adInterstitial.IsReady) { var window = UIApplication.SharedApplication.KeyWindow; var vc = window.RootViewController; while (vc.PresentedViewController != null) { vc = vc.PresentedViewController; } _adInterstitial.PresentFromRootViewController(vc); } }; _adInterstitial.LoadRequest(request); }
public virtual void WillLeaveApplication(GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method(); }
public virtual void DidDismissScreen(GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method(); }
public virtual void WillPresentScreen(GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method(); }
void AddToView () { if (interstitialRequested) return; if (adInterstitial == null) { adInterstitial = new GADInterstitial (intersitialId); adInterstitial.ScreenDismissed += (sender, e) => { interstitialRequested = false; // You need to explicitly Dispose GADInterstitial when you dont need it anymore // to avoid crashes if pending request are in progress adInterstitial.Dispose (); adInterstitial = null; }; } interstitialRequested = true; adInterstitial.LoadRequest (GADRequest.Request); ShowInterstitial (); }
public static void WillLeaveApplication (this IGADInterstitialDelegate This, GADInterstitial ad) { if (ad == null) throw new ArgumentNullException ("ad"); MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (This.Handle, Selector.GetHandle ("interstitialWillLeaveApplication:"), ad.Handle); }
public virtual void WillLeaveApplication (GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method (); }
public virtual void DidDismissScreen (GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method (); }
public virtual void WillPresentScreen (GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method (); }
public virtual void DidFailToReceiveAd (GADInterstitial sender, GADRequestError error) { throw new You_Should_Not_Call_base_In_This_Method (); }
public virtual void DidReceiveAd (GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method (); }
public virtual void InterstitialDidReceiveAppEvent(GADInterstitial interstitial, string name, string info) { throw new You_Should_Not_Call_base_In_This_Method(); }
public static void InterstitialDidReceiveAppEvent(this IGADAppEventDelegate This, GADInterstitial interstitial, string name, string info) { if (interstitial == null) { throw new ArgumentNullException("interstitial"); } if (name == null) { throw new ArgumentNullException("name"); } if (info == null) { throw new ArgumentNullException("info"); } var nsname = NSString.CreateNative(name); var nsinfo = NSString.CreateNative(info); MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, Selector.GetHandle("interstitial:didReceiveAppEvent:withInfo:"), interstitial.Handle, nsname, nsinfo); NSString.ReleaseNative(nsname); NSString.ReleaseNative(nsinfo); }
public virtual void DidReceiveAd(GADInterstitial ad) { throw new You_Should_Not_Call_base_In_This_Method(); }
public virtual void DidFailToReceiveAd(GADInterstitial sender, GADRequestError error) { throw new You_Should_Not_Call_base_In_This_Method(); }
public virtual void InterstitialDidReceiveAppEvent (GADInterstitial interstitial, string name, string info) { throw new You_Should_Not_Call_base_In_This_Method (); }