Keyboard.Key Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Keyboard.Key(Keyboard+Row) |
Create an empty key with no attributes. |
| Keyboard.Key(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| Keyboard.Key(Resources, Keyboard+Row, Int32, Int32, XmlReader) |
Create a key with the given top-left coordinate and extract its attributes from the XML parser. |
Keyboard.Key(Keyboard+Row)
Create an empty key with no attributes.
[Android.Runtime.Register(".ctor", "(Landroid/inputmethodservice/Keyboard$Row;)V", "")]
public Key(Android.InputMethodServices.Keyboard.Row parent);
[<Android.Runtime.Register(".ctor", "(Landroid/inputmethodservice/Keyboard$Row;)V", "")>]
new Android.InputMethodServices.Keyboard.Key : Android.InputMethodServices.Keyboard.Row -> Android.InputMethodServices.Keyboard.Key
Parameters
- parent
- Keyboard.Row
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Keyboard.Key(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Key(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.InputMethodServices.Keyboard.Key : nativeint * Android.Runtime.JniHandleOwnership -> Android.InputMethodServices.Keyboard.Key
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Keyboard.Key(Resources, Keyboard+Row, Int32, Int32, XmlReader)
Create a key with the given top-left coordinate and extract its attributes from the XML parser.
[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)V", "")]
public Key(Android.Content.Res.Resources res, Android.InputMethodServices.Keyboard.Row parent, int x, int y, System.Xml.XmlReader parser);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/inputmethodservice/Keyboard$Row;IILandroid/content/res/XmlResourceParser;)V", "")>]
new Android.InputMethodServices.Keyboard.Key : Android.Content.Res.Resources * Android.InputMethodServices.Keyboard.Row * int * int * System.Xml.XmlReader -> Android.InputMethodServices.Keyboard.Key
Parameters
- res
- Resources
resources associated with the caller's context
- parent
- Keyboard.Row
the row that this key belongs to. The row must already be attached to a Keyboard.
- x
- Int32
the x coordinate of the top-left
- y
- Int32
the y coordinate of the top-left
- parser
- XmlReader
the XML parser containing the attributes for this key
- Attributes
Remarks
Create a key with the given top-left coordinate and extract its attributes from the XML parser.
Android reference for android.inputmethodservice.Keyboard.Key.Key.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.