Added in API level 34

OverlayInfo


class OverlayInfo : Parcelable
kotlin.Any
   ↳ android.content.om.OverlayInfo

An immutable information about an overlay.

Applications calling OverlayManager.getOverlayInfosForTarget(String) get the information list of the registered overlays. Each element in the list presents the information of the particular overlay.

Summary

Inherited constants
Public methods
Int

OverlayIdentifier

Get the unique identifier from the overlay information.

String?

Get the overlay name from the registered fabricated overlay.

String?

Return the target overlayable name.

String

Returns the name of the target overlaid package.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<OverlayInfo!>

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getOverlayIdentifier

Added in API level 34
fun getOverlayIdentifier(): OverlayIdentifier

Get the unique identifier from the overlay information.

The return value of this function can be used to unregister the related overlay.

Return
OverlayIdentifier an identifier representing the current overlay. This value cannot be null.

getOverlayName

Added in API level 34
fun getOverlayName(): String?

Get the overlay name from the registered fabricated overlay.

Return
String? the overlay name This value may be null.

getTargetOverlayableName

Added in API level 34
fun getTargetOverlayableName(): String?

Return the target overlayable name.

Return
String? the name of the target overlayable resources set This value may be null.

getTargetPackageName

Added in API level 34
fun getTargetPackageName(): String

Returns the name of the target overlaid package.

Return
String the target package name This value cannot be null.

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<OverlayInfo!>