Sdílet prostřednictvím


InputMethodManager.StartStylusHandwriting(View) Method

Definition

Start stylus handwriting session.

[Android.Runtime.Register("startStylusHandwriting", "(Landroid/view/View;)V", "", ApiSince=33)]
public void StartStylusHandwriting (Android.Views.View view);
[<Android.Runtime.Register("startStylusHandwriting", "(Landroid/view/View;)V", "", ApiSince=33)>]
member this.StartStylusHandwriting : Android.Views.View -> unit

Parameters

view
View

the View for which stylus handwriting is requested. It and View#hasWindowFocus its window must be View#hasFocus focused.

Attributes

Remarks

Start stylus handwriting session.

If supported by the current input method, a stylus handwriting session is started on the given View, capturing all stylus input and converting it to InputConnection commands.

If handwriting mode is started successfully by the IME, any currently dispatched stylus pointers will be android.view.MotionEvent#FLAG_CANCELED cancelled.

If Stylus handwriting mode is not supported or cannot be fulfilled for any reason by IME, request will be ignored and Stylus touch will continue as normal touch input. Ideally, #isStylusHandwritingAvailable() should be called first to determine if stylus handwriting is supported by IME.

Java documentation for android.view.inputmethod.InputMethodManager.startStylusHandwriting(android.view.View).

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