Android APIs
public class

ExtractedTextRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ android.view.inputmethod.ExtractedTextRequest

Class Overview

Description of what an input method would like from an application when extract text from its input editor.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ExtractedTextRequest> CREATOR Used to make this class parcelable.
public int flags Additional request flags, having the same possible values as the flags parameter of InputConnection.getTextBeforeCursor().
public int hintMaxChars Hint for the maximum number of characters to return.
public int hintMaxLines Hint for the maximum number of lines to return.
public int token Arbitrary integer that can be supplied in the request, which will be delivered back when reporting updates.
Public Constructors
ExtractedTextRequest()
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
void writeToParcel(Parcel dest, int flags)
Used to package this object into a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<ExtractedTextRequest> CREATOR

Added in API level 3

Used to make this class parcelable.

public int flags

Added in API level 3

Additional request flags, having the same possible values as the flags parameter of InputConnection.getTextBeforeCursor().

public int hintMaxChars

Added in API level 3

Hint for the maximum number of characters to return.

public int hintMaxLines

Added in API level 3

Hint for the maximum number of lines to return.

public int token

Added in API level 3

Arbitrary integer that can be supplied in the request, which will be delivered back when reporting updates.

Public Constructors

public ExtractedTextRequest ()

Added in API level 3

Public Methods

public int describeContents ()

Added in API level 3

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public void writeToParcel (Parcel dest, int flags)

Added in API level 3

Used to package this object into a Parcel.

Parameters
dest The Parcel to be written.
flags The flags used for parceling.