mobi.voiceassistant.base.content
Class Label
java.lang.Object
mobi.voiceassistant.base.content.Label
- All Implemented Interfaces:
- Parcelable
public final class Label
- extends Object
- implements Parcelable
Method Summary |
int |
describeContents()
|
static Label |
getActivity(ComponentName component)
|
static Label |
getActivity(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
|
static Label |
getActivity(ComponentName component,
int textId,
int iconId)
|
static Label |
getProvider(ComponentName component)
|
static Label |
getProvider(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
|
static Label |
getProvider(ComponentName component,
int textId,
int iconId)
|
static Label |
getReceiver(ComponentName component)
|
static Label |
getReceiver(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
|
static Label |
getReceiver(ComponentName component,
int textId,
int iconId)
|
static Label |
getService(ComponentName component)
|
static Label |
getService(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
|
static Label |
getService(ComponentName component,
int textId,
int iconId)
|
Drawable |
loadIcon(PackageManager manager)
|
CharSequence |
loadLabel(PackageManager manager)
|
static void |
writeToParcel(Label label,
Parcel parcel,
int flags)
|
void |
writeToParcel(Parcel parcel,
int flags)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATOR
public static final Parcelable.Creator<Label> CREATOR
Label
public Label(LabeledIntent intent)
Label
public Label(String packageName,
CharSequence nonLocalizedText,
int iconId)
Label
public Label(String packageName,
int textId,
int iconId)
loadLabel
public CharSequence loadLabel(PackageManager manager)
loadIcon
public Drawable loadIcon(PackageManager manager)
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel parcel,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
getActivity
public static Label getActivity(ComponentName component)
getActivity
public static Label getActivity(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
getActivity
public static Label getActivity(ComponentName component,
int textId,
int iconId)
getService
public static Label getService(ComponentName component)
getService
public static Label getService(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
getService
public static Label getService(ComponentName component,
int textId,
int iconId)
getReceiver
public static Label getReceiver(ComponentName component)
getReceiver
public static Label getReceiver(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
getReceiver
public static Label getReceiver(ComponentName component,
int textId,
int iconId)
getProvider
public static Label getProvider(ComponentName component)
getProvider
public static Label getProvider(ComponentName component,
CharSequence nonLocalizedText,
int iconId)
getProvider
public static Label getProvider(ComponentName component,
int textId,
int iconId)
writeToParcel
public static void writeToParcel(Label label,
Parcel parcel,
int flags)