Stay organized with collections
Save and categorize content based on your preferences.
RemoteAppScope
data
class
RemoteAppScope
:
AbstractSafeParcelable
Represents a remote application scope. An application can provide one or more scopes to a DTDI
wakeup request to expand what could start on the remote device beyond an exact Android package
match. Only oneof androidRoleScope and androidPackageScope should be set. Not suitable for
sending over the wire.
Summary
Represents a remote application scope.
Specifies an Android package that can be woken up.
An Android Role remote scope, indicates that selecting an allowed alternate app will be
deferred to the specified Android role.
Public constructors
<init>
RemoteAppScope
(
androidRoleScope
:
AndroidRoleScope
?
,
androidPackageScope
:
AndroidPackageScope
?
)
Represents a remote application scope. An application can provide one or more scopes to a DTDI
wakeup request to expand what could start on the remote device beyond an exact Android package
match. Only oneof androidRoleScope and androidPackageScope should be set. Not suitable for
sending over the wire.
Public methods
writeToParcel
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)
:
Unit
Properties
androidPackageScope
val
androidPackageScope
:
AndroidPackageScope
?
Specifies an Android package that can be woken up. The receiving package must specify the
originating package in its manifest.
androidRoleScope
val
androidRoleScope
:
AndroidRoleScope
?
An Android Role remote scope, indicates that selecting an allowed alternate app will be
deferred to the specified Android role.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eRemoteAppScope\u003c/code\u003e represents an application scope for DTDI wakeup requests, allowing flexibility beyond exact package matching.\u003c/p\u003e\n"],["\u003cp\u003eIt can specify either an \u003ccode\u003eandroidPackageScope\u003c/code\u003e or an \u003ccode\u003eandroidRoleScope\u003c/code\u003e, but not both simultaneously.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRemoteAppScope\u003c/code\u003e is not intended for direct transmission over the network.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a mechanism to expand the range of applications that can be started on a remote device.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this class to define the scope of their DTDI wakeup requests, enabling them to target specific applications or roles on remote devices.\u003c/p\u003e\n"]]],[],null,["# RemoteAppScope\n==============\n\n```\ndata class RemoteAppScope : AbstractSafeParcelable\n```\n\n|------------------------------------------------------|\n| [com.google.android.gms.dtdi.core.RemoteAppScope](#) |\n\nRepresents a remote application scope. An application can provide one or more scopes to a DTDI\nwakeup request to expand what could start on the remote device beyond an exact Android package\nmatch. Only oneof androidRoleScope and androidPackageScope should be set. Not suitable for\nsending over the wire.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(com.google.android.gms.dtdi.core.AndroidRoleScope))`(`androidRoleScope:` `[AndroidRoleScope](/android/reference/com/google/android/gms/dtdi/core/AndroidRoleScope)`)` \u003cbr /\u003e |\n| [\u003cinit\u003e](#%3Cinit%3E(com.google.android.gms.dtdi.core.AndroidPackageScope))`(`androidPackageScope:` `[AndroidPackageScope](/android/reference/com/google/android/gms/dtdi/core/AndroidPackageScope)`)` \u003cbr /\u003e |\n| [\u003cinit\u003e](#%3Cinit%3E(com.google.android.gms.dtdi.core.AndroidRoleScope,%20com.google.android.gms.dtdi.core.AndroidPackageScope))`(`androidRoleScope:` `[AndroidRoleScope](/android/reference/com/google/android/gms/dtdi/core/AndroidRoleScope)?`, `androidPackageScope:` `[AndroidPackageScope](/android/reference/com/google/android/gms/dtdi/core/AndroidPackageScope)?`)` Represents a remote application scope. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AndroidPackageScope](/android/reference/com/google/android/gms/dtdi/core/AndroidPackageScope)? | [androidPackageScope](#androidPackageScope:com.google.android.gms.dtdi.core.AndroidPackageScope) Specifies an Android package that can be woken up. |\n| [AndroidRoleScope](/android/reference/com/google/android/gms/dtdi/core/AndroidRoleScope)? | [androidRoleScope](#androidRoleScope:com.google.android.gms.dtdi.core.AndroidRoleScope) An Android Role remote scope, indicates that selecting an allowed alternate app will be deferred to the specified Android role. |\n\n| ### Companion properties ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| [Creator](https://developer.android.com/reference/android/os/Parcelable/Creator.html)\\\u003c[RemoteAppScope](#)\\\u003e | [CREATOR](#Companion.CREATOR:android.os.Parcelable.Creator) \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nRemoteAppScope(androidRoleScope: AndroidRoleScope)\n``` \n\n### \\\u003cinit\\\u003e\n\n```\nRemoteAppScope(androidPackageScope: AndroidPackageScope)\n``` \n\n### \\\u003cinit\\\u003e\n\n```\nRemoteAppScope(\n androidRoleScope: AndroidRoleScope?, \n androidPackageScope: AndroidPackageScope?)\n```\n\nRepresents a remote application scope. An application can provide one or more scopes to a DTDI\nwakeup request to expand what could start on the remote device beyond an exact Android package\nmatch. Only oneof androidRoleScope and androidPackageScope should be set. Not suitable for\nsending over the wire.\n\nPublic methods\n--------------\n\n### writeToParcel\n\n```\nfun writeToParcel(\n dest: Parcel, \n flags: Int\n): Unit\n```\n\nProperties\n----------\n\n### androidPackageScope\n\n```\nval androidPackageScope: AndroidPackageScope?\n```\n\nSpecifies an Android package that can be woken up. The receiving package must specify the\noriginating package in its manifest. \n\n### androidRoleScope\n\n```\nval androidRoleScope: AndroidRoleScope?\n```\n\nAn Android Role remote scope, indicates that selecting an allowed alternate app will be\ndeferred to the specified Android role.\n\nCompanion properties\n--------------------\n\n### CREATOR\n\n```\nval CREATOR: Creator\u003cRemoteAppScope\u003e\n```"]]