ArchivedActivityInfo


class ArchivedActivityInfo
kotlin.Any
   ↳ android.content.pm.ArchivedActivityInfo

Contains fields required to show archived package in Launcher.

Summary

Public constructors

Public methods
ComponentName

The component name of this activity.

Drawable?

Icon of the activity in the app's locale.

CharSequence

The label for the activity.

Drawable?

Monochrome icon, if defined, of the activity.

ArchivedActivityInfo

The component name of this activity.

ArchivedActivityInfo
setIcon(value: Drawable)

Icon of the activity in the app's locale.

ArchivedActivityInfo

The label for the activity.

ArchivedActivityInfo

Monochrome icon, if defined, of the activity.

Public constructors

ArchivedActivityInfo

ArchivedActivityInfo(
    label: CharSequence,
    componentName: ComponentName)
Parameters
label CharSequence: This value cannot be null.
componentName ComponentName: This value cannot be null.

Public methods

getComponentName

fun getComponentName(): ComponentName

The component name of this activity.

Return
ComponentName This value cannot be null.

getIcon

fun getIcon(): Drawable?

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

getLabel

fun getLabel(): CharSequence

The label for the activity.

Return
CharSequence This value cannot be null.

getMonochromeIcon

fun getMonochromeIcon(): Drawable?

Monochrome icon, if defined, of the activity.

Return
Drawable? This value may be null.

setComponentName

fun setComponentName(value: ComponentName): ArchivedActivityInfo

The component name of this activity.

Parameters
value ComponentName: This value cannot be null.
Return
ArchivedActivityInfo This value cannot be null.

setIcon

fun setIcon(value: Drawable): ArchivedActivityInfo

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.

setLabel

fun setLabel(value: CharSequence): ArchivedActivityInfo

The label for the activity.

Parameters
value CharSequence: This value cannot be null.
Return
ArchivedActivityInfo This value cannot be null.

setMonochromeIcon

fun setMonochromeIcon(value: Drawable): ArchivedActivityInfo

Monochrome icon, if defined, of the activity.

Parameters
value Drawable: This value cannot be null.
Return
ArchivedActivityInfo This value cannot be null.