See what premium Google Developer Program benefits can do for you. Learn more
AndroidPackageScope
data class AndroidPackageScope : AbstractSafeParcelable
Represents an Android Package remote scope. Used to indicate another Android Package that can be
started from a wakeup request. Receiving package must declare the calling package as an
originator in its manifest file. Not suitable for sending over the wire.
Summary
Public constructors
|
Represents an Android Package remote scope.
|
Properties
|
String |
Name of an Android package that can be woken.
|
Public constructors
<init>
AndroidPackageScope(packageName: String)
Represents an Android Package remote scope. Used to indicate another Android Package that can be
started from a wakeup request. Receiving package must declare the calling package as an
originator in its manifest file. Not suitable for sending over the wire.
Public methods
Properties
packageName
val packageName: String
Name of an Android package that can be woken.
Companion properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`AndroidPackageScope` represents a remote scope for an Android package, allowing wake-up requests from another package."],["The receiving package needs to declare the calling package as an originator in its manifest for this to function correctly."],["This class is intended for internal use and not suitable for network transmission."],["It includes the `packageName` property to identify the target package and a `writeToParcel` method for data serialization."]]],["`AndroidPackageScope` represents a remote Android Package that can be started via a wakeup request. It contains the `packageName`, a string identifying the target package. The receiving package must list the calling package as an originator. `writeToParcel` method is used to write package information to a `Parcel`. The `CREATOR` allows the class to be recreated from a `Parcel`. A new object can be created by the constructor with the package name.\n"]]