public final class SpellCheckerInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SpellCheckerInfo> |
CREATOR
Used to make this class parcelable.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SpellCheckerInfo(Context context,
ResolveInfo service)
Constructor.
|
SpellCheckerInfo(Parcel source)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Used to make this class parcelable.
|
void |
dump(PrintWriter pw,
String prefix) |
ComponentName |
getComponent()
Return the component of the service that implements.
|
String |
getId()
Return a unique ID for this spell checker.
|
String |
getPackageName()
Return the .apk package that implements this.
|
ServiceInfo |
getServiceInfo()
Return the raw information about the Service implementing this
spell checker.
|
String |
getSettingsActivity()
Return the class name of an activity that provides a settings UI.
|
SpellCheckerSubtype |
getSubtypeAt(int index)
Return the subtype at the specified index.
|
int |
getSubtypeCount()
Return the count of the subtypes.
|
Drawable |
loadIcon(PackageManager pm)
Load the user-displayed icon for this spell checker.
|
CharSequence |
loadLabel(PackageManager pm)
Load the user-displayed label for this spell checker.
|
void |
writeToParcel(Parcel dest,
int flags)
Used to package this object into a
Parcel . |
public static final Parcelable.Creator<SpellCheckerInfo> CREATOR
public SpellCheckerInfo(Context context, ResolveInfo service) throws XmlPullParserException, IOException
XmlPullParserException
IOException
public SpellCheckerInfo(Parcel source)
public String getId()
public ComponentName getComponent()
public String getPackageName()
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 CharSequence loadLabel(PackageManager pm)
pm
- Supply a PackageManager used to load the spell checker's resources.public Drawable loadIcon(PackageManager pm)
pm
- Supply a PackageManager used to load the spell checker's resources.public ServiceInfo getServiceInfo()
public String getSettingsActivity()
Intent
whose action is MAIN and with an
explicit ComponentName
composed of getPackageName()
and the class name returned here.
A null will be returned if there is no settings activity.
public int getSubtypeCount()
public SpellCheckerSubtype getSubtypeAt(int index)
index
- the index of the subtype to return.public int describeContents()
describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void dump(PrintWriter pw, String prefix)