Udostępnij za pośrednictwem


IInputConnection.PerformHandwritingGesture Method

Definition

Perform a handwriting gesture on text.

[Android.Runtime.Register("performHandwritingGesture", "(Landroid/view/inputmethod/HandwritingGesture;Ljava/util/concurrent/Executor;Ljava/util/function/IntConsumer;)V", "GetPerformHandwritingGesture_Landroid_view_inputmethod_HandwritingGesture_Ljava_util_concurrent_Executor_Ljava_util_function_IntConsumer_Handler:Android.Views.InputMethods.IInputConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void PerformHandwritingGesture (Android.Views.InputMethods.HandwritingGesture gesture, Java.Util.Concurrent.IExecutor? executor, Java.Util.Functions.IIntConsumer? consumer);
[<Android.Runtime.Register("performHandwritingGesture", "(Landroid/view/inputmethod/HandwritingGesture;Ljava/util/concurrent/Executor;Ljava/util/function/IntConsumer;)V", "GetPerformHandwritingGesture_Landroid_view_inputmethod_HandwritingGesture_Ljava_util_concurrent_Executor_Ljava_util_function_IntConsumer_Handler:Android.Views.InputMethods.IInputConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member PerformHandwritingGesture : Android.Views.InputMethods.HandwritingGesture * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IIntConsumer -> unit
override this.PerformHandwritingGesture : Android.Views.InputMethods.HandwritingGesture * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IIntConsumer -> unit

Parameters

gesture
HandwritingGesture

the gesture to perform

executor
IExecutor

The executor to run the callback on.

consumer
IIntConsumer

if the caller passes a non-null consumer, the editor must invoke this with one of #HANDWRITING_GESTURE_RESULT_UNKNOWN, #HANDWRITING_GESTURE_RESULT_SUCCESS, #HANDWRITING_GESTURE_RESULT_FAILED, #HANDWRITING_GESTURE_RESULT_CANCELLED, #HANDWRITING_GESTURE_RESULT_FALLBACK, #HANDWRITING_GESTURE_RESULT_UNSUPPORTED after applying the gesture has completed. Will be invoked on the given Executor. Default implementation provides a callback to IntConsumer with #HANDWRITING_GESTURE_RESULT_UNSUPPORTED.

Attributes

Remarks

Perform a handwriting gesture on text.

Note: A supported gesture EditorInfo#getSupportedHandwritingGestures() may not have preview supported EditorInfo#getSupportedHandwritingGesturePreviews().

Java documentation for android.view.inputmethod.InputConnection.performHandwritingGesture(android.view.inputmethod.HandwritingGesture, java.util.concurrent.Executor, java.util.function.IntConsumer).

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