ArchivedActivityInfo


public final class ArchivedActivityInfo
extends Object

java.lang.Object
   ↳ android.content.pm.ArchivedActivityInfo


Contains fields required to show archived package in Launcher.

Summary

Public constructors

ArchivedActivityInfo(CharSequence label, ComponentName componentName)

Public methods

ComponentName getComponentName()

The component name of this activity.

Drawable getIcon()

Icon of the activity in the app's locale.

CharSequence getLabel()

The label for the activity.

Drawable getMonochromeIcon()

Monochrome icon, if defined, of the activity.

ArchivedActivityInfo setComponentName(ComponentName value)

The component name of this activity.

ArchivedActivityInfo setIcon(Drawable value)

Icon of the activity in the app's locale.

ArchivedActivityInfo setLabel(CharSequence value)

The label for the activity.

ArchivedActivityInfo setMonochromeIcon(Drawable value)

Monochrome icon, if defined, of the activity.

Inherited methods

Public constructors

ArchivedActivityInfo

public ArchivedActivityInfo (CharSequence label, 
                ComponentName componentName)

Parameters
label CharSequence: This value cannot be null.

componentName ComponentName: This value cannot be null.

Public methods

getComponentName

public ComponentName getComponentName ()

The component name of this activity.

Returns
ComponentName This value cannot be null.

getIcon

public Drawable getIcon ()

Icon of the activity in the app's locale. if null then the default icon would be shown in the launcher.

Returns
Drawable

getLabel

public CharSequence getLabel ()

The label for the activity.

Returns
CharSequence This value cannot be null.

getMonochromeIcon

public Drawable getMonochromeIcon ()

Monochrome icon, if defined, of the activity.

Returns
Drawable This value may be null.

setComponentName

public ArchivedActivityInfo setComponentName (ComponentName value)

The component name of this activity.

Parameters
value ComponentName: This value cannot be null.

Returns
ArchivedActivityInfo This value cannot be null.

setIcon

public ArchivedActivityInfo setIcon (Drawable value)

Icon of the activity in the app's locale. if null then the default icon would be shown in the launcher.

Parameters
value Drawable: This value cannot be null.

Returns
ArchivedActivityInfo

setLabel

public ArchivedActivityInfo setLabel (CharSequence value)

The label for the activity.

Parameters
value CharSequence: This value cannot be null.

Returns
ArchivedActivityInfo This value cannot be null.

setMonochromeIcon

public ArchivedActivityInfo setMonochromeIcon (Drawable value)

Monochrome icon, if defined, of the activity.

Parameters
value Drawable: This value cannot be null.

Returns
ArchivedActivityInfo This value cannot be null.