Beispiel #1
0
        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);
        }
Beispiel #2
0
        public static void AdViewDidReceiveAppEvent(this IGADAppEventDelegate This, GADBannerView banner, string name, string info)
        {
            if (banner == null)
            {
                throw new ArgumentNullException("banner");
            }
            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("adView:didReceiveAppEvent:withInfo:"), banner.Handle, nsname, nsinfo);
            NSString.ReleaseNative(nsname);
            NSString.ReleaseNative(nsinfo);
        }