UIKeyCommand.Create UIKeyCommand.Create Method

Definition

Overloads

Create(NSString, UIKeyModifierFlags, Selector) Create(NSString, UIKeyModifierFlags, Selector)

Factory method that creates a UIKeyCommand.

Create(NSString, UIKeyModifierFlags, Selector, NSString) Create(NSString, UIKeyModifierFlags, Selector, NSString)

Factory method that instantiates a new UIKeyCommand.

Create(NSString, UIKeyModifierFlags, Selector) Create(NSString, UIKeyModifierFlags, Selector)

Factory method that creates a UIKeyCommand.

[Foundation.Export("keyCommandWithInput:modifierFlags:action:")]
public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action);
static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector -> UIKit.UIKeyCommand

Parameters

keyCommandInput
NSString NSString

Returns

Remarks


       [Export("NewFileAccelerator:")]
        void NewFileAccelerator(UIKeyCommand cmd)
        {
           //etc...
        }
    public override void ViewDidLoad ()
    {
        base.ViewDidLoad ();

        var actionSelector = new Selector("NewFileAccelerator:");
        accelerator = UIKeyCommand.Create((NSString) "N",

UIKeyModifierFlags.Command, actionSelector);

        AddKeyCommand(accelerator);
    }

Create(NSString, UIKeyModifierFlags, Selector, NSString) Create(NSString, UIKeyModifierFlags, Selector, NSString)

Factory method that instantiates a new UIKeyCommand.

[Foundation.Export("keyCommandWithInput:modifierFlags:action:discoverabilityTitle:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action, Foundation.NSString discoverabilityTitle);
static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector * Foundation.NSString -> UIKit.UIKeyCommand

Parameters

keyCommandInput
NSString NSString
discoverabilityTitle
NSString NSString

Returns

Applies to