public class ExtractedText extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ExtractedText> |
CREATOR
Used to make this class parcelable.
|
static int |
FLAG_SELECTING
Bit for
flags : set if the editor is currently in selection mode. |
static int |
FLAG_SINGLE_LINE
Bit for
flags : set if the text being edited can only be on
a single line. |
int |
flags
Additional bit flags of information about the edited text.
|
int |
partialEndOffset
If the content is a report of a partial text change, this is the offset
where the change ends.
|
int |
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 . |
int |
selectionEnd
The offset where the selection currently ends within the extracted
text.
|
int |
selectionStart
The offset where the selection currently starts within the extracted
text.
|
int |
startOffset
The offset in the overall text at which the extracted text starts.
|
CharSequence |
text
The text that has been extracted.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ExtractedText() |
Modifier and Type | Method and Description |
---|---|
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 . |
public CharSequence text
public int startOffset
public int partialStartOffset
partialEndOffset
. If the content is the full text, this
field is -1.public int partialEndOffset
partialStartOffset
,
meaning a reduction or increase, respectively, in the total text.public int selectionStart
public int selectionEnd
public static final int FLAG_SINGLE_LINE
flags
: set if the text being edited can only be on
a single line.public static final int FLAG_SELECTING
flags
: set if the editor is currently in selection mode.public int flags
public static final Parcelable.Creator<ExtractedText> CREATOR
public void writeToParcel(Parcel dest, int flags)
Parcel
.writeToParcel
in interface Parcelable
dest
- The Parcel
to be written.flags
- The flags used for parceling.public int describeContents()
Parcelable
describeContents
in interface Parcelable