UIKeyCommand.Create Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Create(NSString, UIKeyModifierFlags, Selector) |
Metodo Factory che crea un oggetto UIKeyCommand. |
Create(NSString, UIKeyModifierFlags, Selector, NSString) |
Metodo Factory che crea un'istanza di un nuovo UIKeyCommandoggetto . |
Create(NSString, UIKeyModifierFlags, Selector)
Metodo Factory che crea un oggetto 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
Parametri
- keyCommandInput
- NSString
- modifierFlags
- UIKeyModifierFlags
- action
- Selector
Restituisce
- Attributi
Commenti
[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);
}
Si applica a
Create(NSString, UIKeyModifierFlags, Selector, NSString)
Metodo Factory che crea un'istanza di un nuovo UIKeyCommandoggetto .
[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
Parametri
- keyCommandInput
- NSString
- modifierFlags
- UIKeyModifierFlags
- action
- Selector
- discoverabilityTitle
- NSString
Restituisce
- Attributi