public MMDrawerController(global::MonoTouch.UIKit.UIViewController centerViewController, global::MonoTouch.UIKit.UIViewController leftDrawerViewController, global::MonoTouch.UIKit.UIViewController rightDrawerViewController) : base(NSObjectFlag.Empty) { if (centerViewController == null) { throw new ArgumentNullException("centerViewController"); } if (leftDrawerViewController == null) { throw new ArgumentNullException("leftDrawerViewController"); } if (rightDrawerViewController == null) { throw new ArgumentNullException("rightDrawerViewController"); } IsDirectBinding = GetType().Assembly == global::ApiDefinitions.Messaging.this_assembly; if (IsDirectBinding) { InitializeHandle(ApiDefinitions.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr(this.Handle, selInitWithCenterViewControllerLeftDrawerViewControllerRightDrawerViewController_Handle, centerViewController.Handle, leftDrawerViewController.Handle, rightDrawerViewController.Handle), "initWithCenterViewController:leftDrawerViewController:rightDrawerViewController:"); } else { InitializeHandle(ApiDefinitions.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(this.SuperHandle, selInitWithCenterViewControllerLeftDrawerViewControllerRightDrawerViewController_Handle, centerViewController.Handle, leftDrawerViewController.Handle, rightDrawerViewController.Handle), "initWithCenterViewController:leftDrawerViewController:rightDrawerViewController:"); } }
public unsafe virtual void SetCenterViewController(global::MonoTouch.UIKit.UIViewController centerViewController, bool closeAnimated, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDAction))] global::System.Action completion) { if (centerViewController == null) { throw new ArgumentNullException("centerViewController"); } if (completion == null) { throw new ArgumentNullException("completion"); } BlockLiteral *block_ptr_completion; BlockLiteral block_completion; block_completion = new BlockLiteral(); block_ptr_completion = &block_completion; block_completion.SetupBlock(Trampolines.SDAction.Handler, completion); if (IsDirectBinding) { ApiDefinitions.Messaging.void_objc_msgSend_IntPtr_bool_IntPtr(this.Handle, selSetCenterViewControllerWithCloseAnimationCompletion_Handle, centerViewController.Handle, closeAnimated, (IntPtr)block_ptr_completion); } else { ApiDefinitions.Messaging.void_objc_msgSendSuper_IntPtr_bool_IntPtr(this.SuperHandle, selSetCenterViewControllerWithCloseAnimationCompletion_Handle, centerViewController.Handle, closeAnimated, (IntPtr)block_ptr_completion); } block_ptr_completion->CleanupBlock(); }
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 static void ShowInViewController(global::MonoTouch.UIKit.UIViewController viewController, CSNotificationViewStyle style, string message) { if (viewController == null) { throw new ArgumentNullException("viewController"); } if (message == null) { throw new ArgumentNullException("message"); } var nsmessage = NSString.CreateNative(message); ApiDefinition.Messaging.void_objc_msgSend_IntPtr_int_IntPtr(class_ptr, selShowInViewControllerStyleMessage_Handle, viewController.Handle, (int)style, nsmessage); NSString.ReleaseNative(nsmessage); }
public virtual void PresentFromRootViewController(global::MonoTouch.UIKit.UIViewController rootViewController) { if (rootViewController == null) { throw new ArgumentNullException("rootViewController"); } if (IsDirectBinding) { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(this.Handle, selPresentFromRootViewController_Handle, rootViewController.Handle); } else { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, selPresentFromRootViewController_Handle, rootViewController.Handle); } }
public CSNotificationView(global::MonoTouch.UIKit.UIViewController viewController) : base(NSObjectFlag.Empty) { if (viewController == null) { throw new ArgumentNullException("viewController"); } IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly; if (IsDirectBinding) { InitializeHandle(ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, selInitWithParentViewController_Handle, viewController.Handle), "initWithParentViewController:"); } else { InitializeHandle(ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, selInitWithParentViewController_Handle, viewController.Handle), "initWithParentViewController:"); } }
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); }