Share via


PackageInstaller.Session.AppMetadata Property

Definition

Optionally set the app metadata.

public virtual Android.OS.PersistableBundle AppMetadata { [Android.Runtime.Register("getAppMetadata", "()Landroid/os/PersistableBundle;", "GetGetAppMetadataHandler", ApiSince=34)] get; [Android.Runtime.Register("setAppMetadata", "(Landroid/os/PersistableBundle;)V", "GetSetAppMetadata_Landroid_os_PersistableBundle_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getAppMetadata", "()Landroid/os/PersistableBundle;", "GetGetAppMetadataHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setAppMetadata", "(Landroid/os/PersistableBundle;)V", "GetSetAppMetadata_Landroid_os_PersistableBundle_Handler", ApiSince=34)>]
member this.AppMetadata : Android.OS.PersistableBundle with get, set

Property Value

A PersistableBundle containing the app metadata set with Session#setAppMetadata(PersistableBundle). In the case where this data does not exist, an empty PersistableBundle is returned.

Attributes

Remarks

Property getter documentation:

Java documentation for android.content.pm.PackageInstaller.Session.getAppMetadata().

Property setter documentation:

Optionally set the app metadata. The size of this data cannot exceed the maximum allowed. Any existing data from the previous install will not be retained even if no data is set for the current install session. Setting data to null or an empty PersistableBundle will remove any metadata that has previously been set in the same session.

Java documentation for android.content.pm.PackageInstaller.Session.setAppMetadata(android.os.PersistableBundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to