Language

InputMethodService.FinishConnectionlessStylusHandwriting Method

Definition

Overloads

Name Description
FinishConnectionlessStylusHandwriting(String)

Uses the supplied text to finish a connectionless stylus handwriting session.

FinishConnectionlessStylusHandwriting(ICharSequence)

Finishes the current connectionless stylus handwriting session and delivers the result.

FinishConnectionlessStylusHandwriting(String)

Uses the supplied text to finish a connectionless stylus handwriting session.

public void FinishConnectionlessStylusHandwriting(string? text);
member this.FinishConnectionlessStylusHandwriting : string -> unit

Parameters

text
String

Recognized text for the callback; null or empty selects the no-text-recognized error when a callback is present.

Remarks

If a callback exists, the underlying method attempts to send nonempty text as a result, or a no-text-recognized error for null or empty text. It then invokes FinishStylusHandwriting. The string is converted to a Java character sequence before the call.

Applies to

FinishConnectionlessStylusHandwriting(ICharSequence)

Finishes the current connectionless stylus handwriting session and delivers the result.

[Android.Runtime.Register("finishConnectionlessStylusHandwriting", "(Ljava/lang/CharSequence;)V", "", ApiSince=35)]
public void FinishConnectionlessStylusHandwriting(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("finishConnectionlessStylusHandwriting", "(Ljava/lang/CharSequence;)V", "", ApiSince=35)>]
member this.FinishConnectionlessStylusHandwriting : Java.Lang.ICharSequence -> unit

Parameters

text
ICharSequence

Recognized text for the callback; null or empty selects the no-text-recognized error when a callback is present.

Attributes

Remarks

Finishes the current connectionless stylus handwriting session and delivers the result.

This dismisses the ink window and stops intercepting stylus MotionEvents.

Note for IME developers: Call this method at any time to finish the current handwriting session. Generally, this should be invoked after a short timeout, giving the user enough time to start the next stylus stroke, if any. By default, system will time-out after few seconds. To override default timeout, use setStylusHandwritingSessionTimeout(Duration).

Android reference for android.inputmethodservice.InputMethodService.finishConnectionlessStylusHandwriting.

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