Added in API level 35

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

Added in API level 35
ArchivedActivityInfo(
    label: CharSequence,
    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
fun getComponentName(): ComponentName

The component name of this activity.

Return
ComponentName This value cannot be null.

getIcon

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

Added in API level 35
fun getLabel(): CharSequence

The label for the activity.

Return
CharSequence This value cannot be null.

getMonochromeIcon

Added in API level 35
fun getMonochromeIcon(): Drawable?

Monochrome icon, if defined, of the activity.

Return
Drawable? This value may be null.

setComponentName

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

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

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

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