Udostępnij za pośrednictwem


PackageManager.SuspendedPackageAppExtras Property

Definition

Returns a Bundle of extras that was meant to be sent to the calling app when it was suspended.

public virtual Android.OS.Bundle? SuspendedPackageAppExtras { [Android.Runtime.Register("getSuspendedPackageAppExtras", "()Landroid/os/Bundle;", "GetGetSuspendedPackageAppExtrasHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getSuspendedPackageAppExtras", "()Landroid/os/Bundle;", "GetGetSuspendedPackageAppExtrasHandler", ApiSince=28)>]
member this.SuspendedPackageAppExtras : Android.OS.Bundle

Property Value

A Bundle containing the extras for the app, or null if the package is not currently suspended.

Attributes

Remarks

Returns a Bundle of extras that was meant to be sent to the calling app when it was suspended. An app with the permission android.permission.SUSPEND_APPS can supply this to the system at the time of suspending an app.

This is the same Bundle that is sent along with the broadcast Intent#ACTION_MY_PACKAGE_SUSPENDED, whenever the app is suspended. The contents of this Bundle are a contract between the suspended app and the suspending app.

Note: These extras are optional, so if no extras were supplied to the system, this method will return null, even when the calling app has been suspended.

Java documentation for android.content.pm.PackageManager.getSuspendedPackageAppExtras().

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