Taal

InputConnectionWrapper.RequestTextBoundsInfo Method

Definition

Requests text bounds for text in or near the specified screen rectangle.

[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

The screen rectangle for which text bounds are requested.

executor
IExecutor

The executor for the result callback. To use the application's main thread, use MainExecutor.

consumer
IConsumer

The consumer that receives the target's TextBoundsInfoResult through the supplied executor.

Implements

Attributes

Remarks

This information can supplement PerformHandwritingGesture(HandwritingGesture, IExecutor, IIntConsumer).

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