Added in API level 14
TextInfo
class TextInfo : Parcelable
kotlin.Any | |
↳ | android.view.textservice.TextInfo |
This class contains a metadata of the input of TextService
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
Constructor. |
|
Constructor. |
|
Constructor. |
Public methods | |
---|---|
Int |
Used to make this class parcelable. |
CharSequence! | |
Int | |
Int | |
String! |
getText() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Used to package this object into a |
Properties | |
---|---|
static Parcelable.Creator<TextInfo!> |
Used to make this class parcelable. |
Public constructors
TextInfo
Added in API level 21
TextInfo(
charSequence: CharSequence!,
start: Int,
end: Int,
cookie: Int,
sequenceNumber: Int)
Constructor.
Parameters | |
---|---|
charSequence |
CharSequence!: the text which will be input to TextService. Attached spans that implement ParcelableSpan will also be marshaled alongside with the text. |
start |
Int: the beginning of the range of text (inclusive). |
end |
Int: the end of the range of text (exclusive). |
cookie |
Int: the cookie for this TextInfo |
sequenceNumber |
Int: the sequence number for this TextInfo |
TextInfo
Added in API level 14
TextInfo(text: String!)
Constructor.
Parameters | |
---|---|
text |
String!: the text which will be input to TextService |
TextInfo
Added in API level 14
TextInfo(
text: String!,
cookie: Int,
sequenceNumber: Int)
Constructor.
Parameters | |
---|---|
text |
String!: the text which will be input to TextService |
cookie |
Int: the cookie for this TextInfo |
sequenceNumber |
Int: the sequence number for this TextInfo |
Public methods
describeContents
Added in API level 14
fun describeContents(): Int
Used to make this class parcelable.
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getCharSequence
Added in API level 21
fun getCharSequence(): CharSequence!
Return | |
---|---|
CharSequence! |
the charSequence which is an input of a text service. This may have some parcelable spans. |
getText
Added in API level 14
fun getText(): String!
Return | |
---|---|
String! |
the text which is an input of a text service |
writeToParcel
Added in API level 14
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Used to package this object into a Parcel
.
Parameters | |
---|---|
dest |
Parcel: The Parcel to be written. |
flags |
Int: The flags used for parceling. |
Properties
CREATOR
Added in API level 14
static val CREATOR: Parcelable.Creator<TextInfo!>
Used to make this class parcelable.