Stay organized with collections
Save and categorize content based on your preferences.
class ExecuteInput
The input data for IsolatedWorker.onExecute(ExecuteInput, android.os.OutcomeReceiver)
.
Summary
Public constructors
Public methods
getAppPackageName
fun getAppPackageName(): String
The package name of the calling app.
Return |
String |
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 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 2025-03-13 UTC."],[],[],null,["# ExecuteInput\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nExecuteInput\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/ondevicepersonalization/ExecuteInput \"View this page in Java\") \n\n```\nclass ExecuteInput\n```\n\n|---|--------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.ondevicepersonalization.ExecuteInput](#) |\n\nThe input data for [IsolatedWorker.onExecute(ExecuteInput, android.os.OutcomeReceiver)](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedWorker#onExecute(android.adservices.ondevicepersonalization.ExecuteInput,%20android.os.OutcomeReceiver)).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ExecuteInput](#ExecuteInput(kotlin.String,%20android.os.PersistableBundle))`(`appPackageName:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `appParams:` `[PersistableBundle](../../os/PersistableBundle.html#)`)` Creates an [ExecuteInput](#). |\n\n| Public methods ||\n|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getAppPackageName](#getAppPackageName())`()` The package name of the calling app. |\n| [PersistableBundle](../../os/PersistableBundle.html#) | [getAppParams](#getAppParams())`()` The parameters provided by the app to the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService). |\n\nPublic constructors\n-------------------\n\n### ExecuteInput\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nExecuteInput(\n appPackageName: String, \n appParams: PersistableBundle)\n```\n\nCreates an [ExecuteInput](#).\n\n| Parameters ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appPackageName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the package name of the calling app. This value cannot be `null`. |\n| `appParams` | [PersistableBundle](../../os/PersistableBundle.html#): the parameters provided by the app to the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService). The service defines the expected keys in this [PersistableBundle](../../os/PersistableBundle.html#). This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### getAppPackageName\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getAppPackageName(): String\n```\n\nThe package name of the calling app.\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |\n\n### getAppParams\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getAppParams(): PersistableBundle\n```\n\nThe parameters provided by the app to the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService). The service defines the expected keys in this [PersistableBundle](../../os/PersistableBundle.html#).\n\n| Return ||\n|-------------------------------------------------------|------------------------------|\n| [PersistableBundle](../../os/PersistableBundle.html#) | This value cannot be `null`. |"]]