Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
636 lines (629 sloc) 33.6 KB
<Type Name="UIKeyCommand" FullName="UIKit.UIKeyCommand">
<TypeSignature Language="C#" Value="public class UIKeyCommand : Foundation.NSObject, Foundation.INSCopying, Foundation.INSSecureCoding, IDisposable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UIKeyCommand extends Foundation.NSObject implements class Foundation.INSCoding, class Foundation.INSCopying, class Foundation.INSSecureCoding, class ObjCRuntime.INativeObject, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:UIKit.UIKeyCommand" />
<TypeSignature Language="F#" Value="type UIKeyCommand = class&#xA; inherit NSObject&#xA; interface INSCoding&#xA; interface INativeObject&#xA; interface IDisposable&#xA; interface INSCopying&#xA; interface INSSecureCoding" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Foundation.NSObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Foundation.INSCoding</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Foundation.INSCopying</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Foundation.INSSecureCoding</InterfaceName>
</Interface>
<Interface>
<InterfaceName>ObjCRuntime.INativeObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>Foundation.Register("UIKeyCommand", true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Maps hardware key presses to custom actions.</summary>
<remarks>
<para>
<see cref="T:UIKit.UIKeyCommand" /> objects are only generated with an attached hardware keyboard.</para>
<para>To create keyboard accelerators, developers must create a <see cref="T:ObjCRuntime.Selector" /> that is associated with
a method of type <c><![CDATA[Action<UIKeyCommand>]]></c> with an appropriate <see cref="T:Foundation.ExportAttribute" />:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
[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);
}
]]></code>
</example>
</remarks>
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKeyCommand_class/index.html">Apple documentation for <c>UIKeyCommand</c></related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIKeyCommand ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor, initializes a new instance of this class.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIKeyCommand (Foundation.NSCoder coder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Foundation.NSCoder coder) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.#ctor(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="new UIKit.UIKeyCommand : Foundation.NSCoder -&gt; UIKit.UIKeyCommand" Usage="new UIKit.UIKeyCommand coder" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithCoder:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="coder" Type="Foundation.NSCoder" />
</Parameters>
<Docs>
<param name="coder">The unarchiver object.</param>
<summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
<remarks>
<para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
<para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
<para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected UIKeyCommand (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UIKeyCommand : Foundation.NSObjectFlag -&gt; UIKit.UIKeyCommand" Usage="new UIKit.UIKeyCommand t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal UIKeyCommand (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UIKeyCommand : nativeint -&gt; UIKit.UIKeyCommand" Usage="new UIKit.UIKeyCommand handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ClassHandle">
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.ClassHandle" />
<MemberSignature Language="F#" Value="member this.ClassHandle : nativeint" Usage="UIKit.UIKeyCommand.ClassHandle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>The handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
<remarks>Each Xamarin.iOS class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
</Docs>
</Member>
<Member MemberName="Copy">
<MemberSignature Language="C#" Value="public virtual Foundation.NSObject Copy (Foundation.NSZone zone);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Foundation.NSObject Copy(class Foundation.NSZone zone) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.Copy(Foundation.NSZone)" />
<MemberSignature Language="F#" Value="override this.Copy : Foundation.NSZone -&gt; Foundation.NSObject" Usage="uIKeyCommand.Copy zone" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Foundation.INSCopying.Copy(Foundation.NSZone)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("copyWithZone:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSObject</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="zone" Type="Foundation.NSZone" />
</Parameters>
<Docs>
<param name="zone">Zone to use to allocate this object, or null to use the default zone.</param>
<summary>Performs a copy of the underlying Objective-C object.</summary>
<returns>This method performs a copy of the underlying Objective-C object state and returns a new instance of it. It does not actually try to replicate any managed state.</returns>
<remarks>Implementation of the INSCopyable interface.</remarks>
</Docs>
</Member>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIKeyCommand Create(class Foundation.NSString keyCommandInput, valuetype UIKit.UIKeyModifierFlags modifierFlags, class ObjCRuntime.Selector action) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.Create(Foundation.NSString,UIKit.UIKeyModifierFlags,ObjCRuntime.Selector)" />
<MemberSignature Language="F#" Value="static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector -&gt; UIKit.UIKeyCommand" Usage="UIKit.UIKeyCommand.Create (keyCommandInput, modifierFlags, action)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("keyCommandWithInput:modifierFlags:action:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UIKeyCommand</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCommandInput" Type="Foundation.NSString" />
<Parameter Name="modifierFlags" Type="UIKit.UIKeyModifierFlags" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
</Parameters>
<Docs>
<param name="keyCommandInput">To be added.</param>
<param name="modifierFlags">To be added.</param>
<param name="action">To be added.</param>
<summary>Factory method that creates a UIKeyCommand.</summary>
<returns>To be added.</returns>
<remarks>
<example>
<code lang="csharp lang-csharp"><![CDATA[
[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);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action, Foundation.NSString discoverabilityTitle);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIKeyCommand Create(class Foundation.NSString keyCommandInput, valuetype UIKit.UIKeyModifierFlags modifierFlags, class ObjCRuntime.Selector action, class Foundation.NSString discoverabilityTitle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.Create(Foundation.NSString,UIKit.UIKeyModifierFlags,ObjCRuntime.Selector,Foundation.NSString)" />
<MemberSignature Language="F#" Value="static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector * Foundation.NSString -&gt; UIKit.UIKeyCommand" Usage="UIKit.UIKeyCommand.Create (keyCommandInput, modifierFlags, action, discoverabilityTitle)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("keyCommandWithInput:modifierFlags:action:discoverabilityTitle:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UIKeyCommand</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCommandInput" Type="Foundation.NSString" />
<Parameter Name="modifierFlags" Type="UIKit.UIKeyModifierFlags" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
<Parameter Name="discoverabilityTitle" Type="Foundation.NSString" />
</Parameters>
<Docs>
<param name="keyCommandInput">To be added.</param>
<param name="modifierFlags">To be added.</param>
<param name="action">To be added.</param>
<param name="discoverabilityTitle">To be added.</param>
<summary>Factory method that instantiates a new <see cref="T:UIKit.UIKeyCommand" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DiscoverabilityTitle">
<MemberSignature Language="C#" Value="public virtual Foundation.NSString DiscoverabilityTitle { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Foundation.NSString DiscoverabilityTitle" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.DiscoverabilityTitle" />
<MemberSignature Language="F#" Value="member this.DiscoverabilityTitle : Foundation.NSString with get, set" Usage="UIKit.UIKeyCommand.DiscoverabilityTitle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("discoverabilityTitle")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setDiscoverabilityTitle:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>The label to be used for the keyboard shortcut.</summary>
<value>
<para>(More documentation for this node is coming)</para>
<para tool="nullallowed">This value can be <see langword="null" />.</para>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DownArrow">
<MemberSignature Language="C#" Value="public static Foundation.NSString DownArrow { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString DownArrow" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.DownArrow" />
<MemberSignature Language="F#" Value="member this.DownArrow : Foundation.NSString" Usage="UIKit.UIKeyCommand.DownArrow" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Field("UIKeyInputDownArrow", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the value associated with the constant UIKeyInputDownArrow</summary>
<value>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="EncodeTo">
<MemberSignature Language="C#" Value="public virtual void EncodeTo (Foundation.NSCoder encoder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void EncodeTo(class Foundation.NSCoder encoder) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIKeyCommand.EncodeTo(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="abstract member EncodeTo : Foundation.NSCoder -&gt; unit&#xA;override this.EncodeTo : Foundation.NSCoder -&gt; unit" Usage="uIKeyCommand.EncodeTo encoder" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("encodeWithCoder:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="encoder" Type="Foundation.NSCoder" />
</Parameters>
<Docs>
<param name="encoder">The encoder object where the state of the object will be stored</param>
<summary>Encodes the state of the object on the provided encoder</summary>
<remarks>
<para>This method is part of the <see cref="T:Foundation.NSCoding" /> protocol and is used by applications to preserve the state of the object into an archive.</para>
<para>Users will typically create a <see cref="T:Foundation.NSKeyedArchiver" /> and then invoke the <see cref="M:Foundation.NSKeyedArchiver.ArchiveRootObjectToFile(Foundation.NSObject,System.String)" /> which will call into this method</para>
<para>If developers want to allow their object to be archived, they should override this method and store their state in using the provided <paramref name="encoder" /> parameter. In addition, developers should also implement a constructor that takes an NSCoder argument and is exported with [Export ("initWithCoder:")]</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[public void override EncodeTo (NSCoder coder){
coder.Encode (1, key: "version");
coder.Encode (userName, key: "userName");
coder.Encode (hostName, key: "hostName");]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="Escape">
<MemberSignature Language="C#" Value="public static Foundation.NSString Escape { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString Escape" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.Escape" />
<MemberSignature Language="F#" Value="member this.Escape : Foundation.NSString" Usage="UIKit.UIKeyCommand.Escape" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Field("UIKeyInputEscape", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the value associated with the constant UIKeyInputEscape</summary>
<value>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Input">
<MemberSignature Language="C#" Value="public virtual Foundation.NSString Input { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Foundation.NSString Input" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.Input" />
<MemberSignature Language="F#" Value="member this.Input : Foundation.NSString" Usage="UIKit.UIKeyCommand.Input" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("input")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>The string of characters that must be pressed to match this key command. Read-only.</summary>
<value>
<para>(More documentation for this node is coming)</para>
<para tool="nullallowed">This value can be <see langword="null" />.</para>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="LeftArrow">
<MemberSignature Language="C#" Value="public static Foundation.NSString LeftArrow { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString LeftArrow" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.LeftArrow" />
<MemberSignature Language="F#" Value="member this.LeftArrow : Foundation.NSString" Usage="UIKit.UIKeyCommand.LeftArrow" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Field("UIKeyInputLeftArrow", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the value associated with the constant UIKeyInputLeftArrow</summary>
<value>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ModifierFlags">
<MemberSignature Language="C#" Value="public virtual UIKit.UIKeyModifierFlags ModifierFlags { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype UIKit.UIKeyModifierFlags ModifierFlags" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.ModifierFlags" />
<MemberSignature Language="F#" Value="member this.ModifierFlags : UIKit.UIKeyModifierFlags" Usage="UIKit.UIKeyCommand.ModifierFlags" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("modifierFlags")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UIKeyModifierFlags</ReturnType>
</ReturnValue>
<Docs>
<summary>A bitmask of modifier flags that must be pressed to match this key command. Read-only.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RightArrow">
<MemberSignature Language="C#" Value="public static Foundation.NSString RightArrow { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString RightArrow" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.RightArrow" />
<MemberSignature Language="F#" Value="member this.RightArrow : Foundation.NSString" Usage="UIKit.UIKeyCommand.RightArrow" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Field("UIKeyInputRightArrow", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the value associated with the constant UIKeyInputRightArrow</summary>
<value>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UpArrow">
<MemberSignature Language="C#" Value="public static Foundation.NSString UpArrow { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString UpArrow" />
<MemberSignature Language="DocId" Value="P:UIKit.UIKeyCommand.UpArrow" />
<MemberSignature Language="F#" Value="member this.UpArrow : Foundation.NSString" Usage="UIKit.UIKeyCommand.UpArrow" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Field("UIKeyInputUpArrow", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents the value associated with the constant UIKeyInputUpArrow</summary>
<value>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.