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

Added in API level 35
public ArchivedActivityInfo (CharSequence label, 
                ComponentName componentName)

Parameters
label CharSequence: This value cannot be null.

componentName ComponentName: This value cannot be null.

Public methods

getComponentName

Added in API level 35
public ComponentName getComponentName ()

The component name of this activity.

Returns
ComponentName This value cannot be null.

getIcon

Added in API level 35
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

Added in API level 35
public CharSequence getLabel ()

The label for the activity.

Returns
CharSequence This value cannot be null.

getMonochromeIcon

Added in API level 35
public Drawable getMonochromeIcon ()

Monochrome icon, if defined, of the activity.

Returns
Drawable This value may be null.

setComponentName

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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

Added in API level 35
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.