Methods Summary |
---|
public int | describeContents()
return 0;
|
public void | dump(android.util.Printer pw, java.lang.String prefix)
pw.println(prefix + "mId=" + mId
+ " mSettingsActivityName=" + mSettingsActivityName);
pw.println(prefix + "mIsDefaultResId=0x"
+ Integer.toHexString(mIsDefaultResId));
pw.println(prefix + "Service:");
mService.dump(pw, prefix + " ");
|
public boolean | equals(java.lang.Object o)Used to test whether the given parameter object is an
{@link InputMethodInfo} and its Id is the same to this one.
if (o == this) return true;
if (o == null) return false;
if (!(o instanceof InputMethodInfo)) return false;
InputMethodInfo obj = (InputMethodInfo) o;
return mId.equals(obj.mId);
|
public android.content.ComponentName | getComponent()Return the component of the service that implements this input
method.
return new ComponentName(mService.serviceInfo.packageName,
mService.serviceInfo.name);
|
public java.lang.String | getId()Return a unique ID for this input method. The ID is generated from
the package and class name implementing the method.
return mId;
|
public int | getIsDefaultResourceId()Return the resource identifier of a resource inside of this input
method's .apk that determines whether it should be considered a
default input method for the system.
return mIsDefaultResId;
|
public java.lang.String | getPackageName()Return the .apk package that implements this input method.
return mService.serviceInfo.packageName;
|
public android.content.pm.ServiceInfo | getServiceInfo()Return the raw information about the Service implementing this
input method. Do not modify the returned object.
return mService.serviceInfo;
|
public java.lang.String | getServiceName()Return the class name of the service component that implements
this input method.
return mService.serviceInfo.name;
|
public java.lang.String | getSettingsActivity()Return the class name of an activity that provides a settings UI for
the input method. You can launch this activity be starting it with
an {@link android.content.Intent} whose action is MAIN and with an
explicit {@link android.content.ComponentName}
composed of {@link #getPackageName} and the class name returned here.
A null will be returned if there is no settings activity associated
with the input method.
return mSettingsActivityName;
|
public android.graphics.drawable.Drawable | loadIcon(android.content.pm.PackageManager pm)Load the user-displayed icon for this input method.
return mService.loadIcon(pm);
|
public java.lang.CharSequence | loadLabel(android.content.pm.PackageManager pm)Load the user-displayed label for this input method.
return mService.loadLabel(pm);
|
public java.lang.String | toString()
return "InputMethodMetaInfo{" + mId
+ ", settings: "
+ mSettingsActivityName + "}";
|
public void | writeToParcel(android.os.Parcel dest, int flags)Used to package this object into a {@link Parcel}.
dest.writeString(mId);
dest.writeString(mSettingsActivityName);
dest.writeInt(mIsDefaultResId);
mService.writeToParcel(dest, flags);
|