Keyboard.Key Keyboard.Key Class

Definition

Class for describing the position and characteristics of a single key in the keyboard.

[Android.Runtime.Register("android/inputmethodservice/Keyboard$Key", ApiSince=3, DoNotGenerateAcw=true)]
public class Keyboard.Key : Java.Lang.Object
type Keyboard.Key = class
    inherit Object
Inheritance
Keyboard.KeyKeyboard.Key
Attributes

Remarks

Android platform documentation

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.

Constructors

Keyboard.Key(IntPtr, JniHandleOwnership) Keyboard.Key(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Keyboard.Key(Keyboard+Row) Keyboard.Key(Keyboard+Row)

Create an empty key with no attributes.

Keyboard.Key(Resources, Keyboard+Row, Int32, Int32, XmlReader) 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.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Codes Codes

All the key codes (unicode or custom code) that this key could generate, zero'th being the most important.

EdgeFlags EdgeFlags

Flags that specify the anchoring to edges of the keyboard for detecting touch events that are just out of the boundary of the key.

Gap Gap

The horizontal gap before this key

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Height Height

Height of the key, not including the gap

Icon Icon

Icon to display instead of a label.

IconPreview IconPreview

Preview version of the icon, for the preview popup

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Label Label

Label to display

Modifier Modifier

Whether this is a modifier key, such as Shift or Alt

On On

If this is a sticky key, is it on?

PeerReference PeerReference Inherited from Object
PopupCharacters PopupCharacters

Popup characters

PopupResId PopupResId

If this key pops up a mini keyboard, this is the resource id for the XML layout for that keyboard.

Pressed Pressed

The current pressed state of this key

Repeatable Repeatable

Whether this key repeats itself when held down

Sticky Sticky

Whether this key is sticky, i.e., a toggle key

Text Text

Text to output when pressed.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Width Width

Width of the key, not including the gap

X X

X coordinate of the key in the keyboard layout

Y Y

Y coordinate of the key in the keyboard layout

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetCurrentDrawableState() GetCurrentDrawableState()

Returns the drawable state for the key, based on the current state and type of the key.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
IsInside(Int32, Int32) IsInside(Int32, Int32)

Detects if a point falls inside this key.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
OnPressed() OnPressed()

Informs the key that it has been pressed, in case it needs to change its appearance or state.

OnReleased(Boolean) OnReleased(Boolean)

Changes the pressed state of the key.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SquaredDistanceFrom(Int32, Int32) SquaredDistanceFrom(Int32, Int32)

Returns the square of the distance between the center of the key and the given point.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to