Keyboard.GetNearestKeys(Int32, Int32) Method
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.
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
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.