public virtual void RequestBannerAd (GADAdSize adSize, string serverParameter, string serverLabel, GADCustomEventRequest request) { if (serverParameter == null) throw new ArgumentNullException ("serverParameter"); if (serverLabel == null) throw new ArgumentNullException ("serverLabel"); if (request == null) throw new ArgumentNullException ("request"); var nsserverParameter = NSString.CreateNative (serverParameter); var nsserverLabel = NSString.CreateNative (serverLabel); if (IsDirectBinding) { ApiDefinition.Messaging.void_objc_msgSend_GADAdSize_IntPtr_IntPtr_IntPtr (this.Handle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } else { ApiDefinition.Messaging.void_objc_msgSendSuper_GADAdSize_IntPtr_IntPtr_IntPtr (this.SuperHandle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } NSString.ReleaseNative (nsserverParameter); NSString.ReleaseNative (nsserverLabel); }
public GADBannerView (GADAdSize size) : base (NSObjectFlag.Empty) { IsDirectBinding = GetType ().Assembly == global::ApiDefinition.Messaging.this_assembly; if (IsDirectBinding) { InitializeHandle (ApiDefinition.Messaging.IntPtr_objc_msgSend_GADAdSize (this.Handle, selInitWithAdSize_Handle, size), "initWithAdSize:"); } else { InitializeHandle (ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_GADAdSize (this.SuperHandle, selInitWithAdSize_Handle, size), "initWithAdSize:"); } }
public virtual void WillChangeAdSizeTo (GADBannerView view, GADAdSize size) { throw new You_Should_Not_Call_base_In_This_Method (); }