Język

TextBoundsInfoResultCode Enum

Definition

public enum TextBoundsInfoResultCode
type TextBoundsInfoResultCode = 
Inheritance
TextBoundsInfoResultCode

Fields

Name Value Description
Unsupported 0

Result for InputConnection.requestTextBoundsInfo(RectF,Executor,Consumer) when the editor doesn't implement the method.

Android reference for android.view.inputmethod.TextBoundsInfoResult.CODE_UNSUPPORTED.

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.

Success 1

Result for InputConnection.requestTextBoundsInfo(RectF,Executor,Consumer) when the editor successfully returns a TextBoundsInfo.

Android reference for android.view.inputmethod.TextBoundsInfoResult.CODE_SUCCESS.

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.

Failed 2

Result for InputConnection.requestTextBoundsInfo(RectF,Executor,Consumer) when the request failed. This result code is returned when the editor can't provide a valid TextBoundsInfo. (e.g. The editor view is not laid out.)

Android reference for android.view.inputmethod.TextBoundsInfoResult.CODE_FAILED.

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.

Cancelled 3

Result for InputConnection.requestTextBoundsInfo(RectF,Executor,Consumer) when the request is cancelled. This happens when the InputConnection is or becomes invalidated while requesting the TextBoundsInfo, for example because a new InputConnection was started, or due to InputMethodManager.invalidateInput.

Android reference for android.view.inputmethod.TextBoundsInfoResult.CODE_CANCELLED.

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