Language

TextBoundsInfoResultCode Enum

Definition

Identifies the outcome of a text bounds information request.

public enum TextBoundsInfoResultCode
type TextBoundsInfoResultCode = 
Inheritance
TextBoundsInfoResultCode

Fields

Name Value Description
Unsupported 0

The editor does not implement the text bounds request.

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

The text bounds request succeeded and the editor returned 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

The text bounds request failed because the editor cannot provide valid text bounds, for example when 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

The text bounds request was cancelled because the input connection is or became invalid, for example when a new connection starts or InvalidateInput(View) is called.

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.

Remarks

These codes distinguish a successful result from unsupported, failed, or cancelled requests.

Applies to