SpellCheckerInfo
class SpellCheckerInfo : Parcelable
kotlin.Any | |
↳ | android.view.textservice.SpellCheckerInfo |
This class is used to specify meta information of a spell checker.
Summary
Inherited constants | |
---|---|
Public methods | |
---|---|
Int |
Used to make this class parcelable. |
ComponentName! |
Return the component of the service that implements. |
String! |
getId() Return a unique ID for this spell checker. |
String! |
Return the . |
ServiceInfo! |
Return the raw information about the Service implementing this spell checker. |
String! |
Return the class name of an activity that provides a settings UI. |
SpellCheckerSubtype! |
getSubtypeAt(index: Int) Return the subtype at the specified index. |
Int |
Return the count of the subtypes. |
Drawable! |
loadIcon(pm: PackageManager!) Load the user-displayed icon for this spell checker. |
CharSequence! |
loadLabel(pm: PackageManager!) Load the user-displayed label for this spell checker. |
Unit |
writeToParcel(dest: Parcel, flags: Int) Used to package this object into a |
Properties | |
---|---|
static Parcelable.Creator<SpellCheckerInfo!> |
Used to make this class parcelable. |
Public methods
describeContents
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 |
getComponent
fun getComponent(): ComponentName!
Return the component of the service that implements.
getId
fun getId(): String!
Return a unique ID for this spell checker. The ID is generated from the package and class name implementing the method.
getPackageName
fun getPackageName(): String!
Return the .apk package that implements this.
getServiceInfo
fun getServiceInfo(): ServiceInfo!
Return the raw information about the Service implementing this spell checker. Do not modify the returned object.
getSettingsActivity
fun getSettingsActivity(): String!
Return the class name of an activity that provides a settings UI. You can launch this activity be starting it with an android.content.Intent
whose action is MAIN and with an explicit android.content.ComponentName
composed of getPackageName
and the class name returned here.
A null will be returned if there is no settings activity.
getSubtypeAt
fun getSubtypeAt(index: Int): SpellCheckerSubtype!
Return the subtype at the specified index.
Parameters | |
---|---|
index |
Int: the index of the subtype to return. |
loadIcon
fun loadIcon(pm: PackageManager!): Drawable!
Load the user-displayed icon for this spell checker.
Parameters | |
---|---|
pm |
PackageManager!: Supply a PackageManager used to load the spell checker's resources. |
loadLabel
fun loadLabel(pm: PackageManager!): CharSequence!
Load the user-displayed label for this spell checker.
Parameters | |
---|---|
pm |
PackageManager!: Supply a PackageManager used to load the spell checker's resources. |
writeToParcel
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
static val CREATOR: Parcelable.Creator<SpellCheckerInfo!>
Used to make this class parcelable.