public static CSNotificationView NotificationViewWithParentViewController(global::MonoTouch.UIKit.UIViewController viewController, global::MonoTouch.UIKit.UIColor tintColor, global::MonoTouch.UIKit.UIImage image, string message) { if (viewController == null) { throw new ArgumentNullException("viewController"); } if (tintColor == null) { throw new ArgumentNullException("tintColor"); } if (message == null) { throw new ArgumentNullException("message"); } var nsmessage = NSString.CreateNative(message); CSNotificationView ret; ret = Runtime.GetNSObject <CSNotificationView> (ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(class_ptr, selNotificationViewWithParentViewControllerTintColorImageMessage_Handle, viewController.Handle, tintColor.Handle, image == null ? IntPtr.Zero : image.Handle, nsmessage)); NSString.ReleaseNative(nsmessage); return(ret); }
public static void ShowInViewController(global::MonoTouch.UIKit.UIViewController viewController, global::MonoTouch.UIKit.UIColor tintColor, global::MonoTouch.UIKit.UIFont font, global::MonoTouch.UIKit.UITextAlignment textAlignment, global::MonoTouch.UIKit.UIImage image, string message, global::System.Double duration) { if (viewController == null) { throw new ArgumentNullException("viewController"); } if (tintColor == null) { throw new ArgumentNullException("tintColor"); } if (font == null) { throw new ArgumentNullException("font"); } if (image == null) { throw new ArgumentNullException("image"); } if (message == null) { throw new ArgumentNullException("message"); } var nsmessage = NSString.CreateNative(message); ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_int_IntPtr_IntPtr_Double(class_ptr, selShowInViewControllerTintColorFontTextAlignmentImageMessageDuration_Handle, viewController.Handle, tintColor.Handle, font.Handle, (int)textAlignment, image.Handle, nsmessage, duration); NSString.ReleaseNative(nsmessage); }
public virtual void SetBackgroundGradient(global::MonoTouch.UIKit.UIColor fromColor, global::MonoTouch.UIKit.UIColor toColor) { if (fromColor == null) { throw new ArgumentNullException("fromColor"); } if (toColor == null) { throw new ArgumentNullException("toColor"); } if (IsDirectBinding) { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr(this.Handle, selSetBackgroundGradientFromToColor_Handle, fromColor.Handle, toColor.Handle); } else { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, selSetBackgroundGradientFromToColor_Handle, fromColor.Handle, toColor.Handle); } }