次の方法で共有


Keyboard.GetNearestKeys(Int32, Int32) Method

Definition

Returns the indices of the keys that are closest to the given point.

[Android.Runtime.Register("getNearestKeys", "(II)[I", "GetGetNearestKeys_IIHandler")]
public virtual int[]? GetNearestKeys (int x, int y);
[<Android.Runtime.Register("getNearestKeys", "(II)[I", "GetGetNearestKeys_IIHandler")>]
abstract member GetNearestKeys : int * int -> int[]
override this.GetNearestKeys : int * int -> int[]

Parameters

x
Int32

the x-coordinate of the point

y
Int32

the y-coordinate of the point

Returns

Int32[]

the array of integer indices for the nearest keys to the given point. If the given point is out of range, then an array of size zero is returned.

Attributes

Remarks

Returns the indices of the keys that are closest to the given point.

Java documentation for android.inputmethodservice.Keyboard.getNearestKeys(int, int).

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