Språk

InputConnectionWrapper.RequestTextBoundsInfo Method

Definition

Called by input method to request the TextBoundsInfo for a range of text which is covered by or in vicinity of the given bounds.

[Android.Runtime.Register("requestTextBoundsInfo", "(Landroid/graphics/RectF;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetRequestTextBoundsInfo_Landroid_graphics_RectF_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void RequestTextBoundsInfo(Android.Graphics.RectF bounds, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer consumer);
[<Android.Runtime.Register("requestTextBoundsInfo", "(Landroid/graphics/RectF;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetRequestTextBoundsInfo_Landroid_graphics_RectF_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member RequestTextBoundsInfo : Android.Graphics.RectF * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.RequestTextBoundsInfo : Android.Graphics.RectF * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

bounds
RectF
executor
IExecutor

This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

consumer
IConsumer

Implements

Attributes

Remarks

Called by input method to request the TextBoundsInfo for a range of text which is covered by or in vicinity of the given bounds. It can be used as a supplementary method to implement the handwriting gesture API - performHandwritingGesture(HandwritingGesture,Executor,IntConsumer).

Java documentation for android.view.inputmethod.InputConnectionWrapper.requestTextBoundsInfo(android.graphics.RectF, java.util.concurrent.Executor, java.util.function.Consumer<android.view.inputmethod.TextBoundsInfoResult>).

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