java.lang.Object | |
↳ | android.view.inputmethod.ExtractedText |
Information about text that has been extracted for use by an input method.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_SELECTING | Bit for flags : set if the editor is currently in selection mode. |
|||||||||
int | FLAG_SINGLE_LINE | Bit for flags : set if the text being edited can only be on a single line. |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR | Used to make this class parcelable. | |||||||||
|
flags | Additional bit flags of information about the edited text. | |||||||||
|
partialEndOffset | If the content is a report of a partial text change, this is the offset where the change ends. | |||||||||
|
partialStartOffset | If the content is a report of a partial text change, this is the offset where the change starts and it runs until partialEndOffset . |
|||||||||
|
selectionEnd | The offset where the selection currently ends within the extracted text. | |||||||||
|
selectionStart | The offset where the selection currently starts within the extracted text. | |||||||||
|
startOffset | The offset in the overall text at which the extracted text starts. | |||||||||
|
text | The text that has been extracted. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
|
|||||||||
|
|
Used to package this object into a
Parcel .
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
|||||||||||
![]() |
Bit for flags
: set if the editor is currently in selection mode.
Bit for flags
: set if the text being edited can only be on a single line.
Used to make this class parcelable.
If the content is a report of a partial text change, this is the offset where the change ends. Note that the actual text may be larger or smaller than the difference between this and partialStartOffset
, meaning a reduction or increase, respectively, in the total text.
If the content is a report of a partial text change, this is the offset where the change starts and it runs until partialEndOffset
. If the content is the full text, this field is -1.
The offset where the selection currently ends within the extracted text. The real selection end position is at startOffset+selectionEnd.
The offset where the selection currently starts within the extracted text. The real selection start position is at startOffset+selectionStart.
The offset in the overall text at which the extracted text starts.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.