Share via


InputMethodService.OnUpdateCursor(Rect) Method

Definition

Caution

deprecated

Called when the application has reported a new location of its text cursor.

[Android.Runtime.Register("onUpdateCursor", "(Landroid/graphics/Rect;)V", "GetOnUpdateCursor_Landroid_graphics_Rect_Handler")]
[System.Obsolete("deprecated")]
public virtual void OnUpdateCursor (Android.Graphics.Rect? newCursor);
[<Android.Runtime.Register("onUpdateCursor", "(Landroid/graphics/Rect;)V", "GetOnUpdateCursor_Landroid_graphics_Rect_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member OnUpdateCursor : Android.Graphics.Rect -> unit
override this.OnUpdateCursor : Android.Graphics.Rect -> unit

Parameters

newCursor
Rect
Attributes

Remarks

Called when the application has reported a new location of its text cursor. This is only called if explicitly requested by the input method. The default implementation does nothing.

This member is deprecated. Use #onUpdateCursorAnchorInfo(CursorAnchorInfo) instead.

Java documentation for android.inputmethodservice.InputMethodService.onUpdateCursor(android.graphics.Rect).

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