Stay organized with collections
Save and categorize content based on your preferences.
ExecuteResult
open class ExecuteResult
The result of a call to OnDevicePersonalizationManager.execute(ComponentName,
Summary
Public methods
getOutputData
open fun getOutputData(): ByteArray?
Returns the output data that was returned by the IsolatedService
. This will be non-null if the IsolatedService
returns any results to the caller, and the egress of data from the IsolatedService
to the specific calling app is allowed by policy as well as an allowlist.
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-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# OnDevicePersonalizationManager.ExecuteResult\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nExecuteResult\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/ondevicepersonalization/OnDevicePersonalizationManager.ExecuteResult \"View this page in Java\") \n\n```\nopen class ExecuteResult\n```\n\n|---|----------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.ondevicepersonalization.OnDevicePersonalizationManager.ExecuteResult](#) |\n\nThe result of a call to [OnDevicePersonalizationManager.execute(ComponentName,](/reference/kotlin/android/adservices/ondevicepersonalization/OnDevicePersonalizationManager#execute(android.content.ComponentName,%20android.os.PersistableBundle,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver))\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | [getOutputData](#getOutputData())`()` Returns the output data that was returned by the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService). |\n| open [SurfacePackageToken](/reference/kotlin/android/adservices/ondevicepersonalization/SurfacePackageToken)? | [getSurfacePackageToken](#getSurfacePackageToken())`()` Returns a [SurfacePackageToken](/reference/kotlin/android/adservices/ondevicepersonalization/SurfacePackageToken), which is an opaque reference to content that can be displayed in a [android.view.SurfaceView](../../view/SurfaceView.html#). |\n\nPublic methods\n--------------\n\n### getOutputData\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getOutputData(): ByteArray?\n```\n\nReturns the output data that was returned by the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService). This will be non-null if the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService) returns any results to the caller, and the egress of data from the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService) to the specific calling app is allowed by policy as well as an allowlist. \n\n### getSurfacePackageToken\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getSurfacePackageToken(): SurfacePackageToken?\n```\n\nReturns a [SurfacePackageToken](/reference/kotlin/android/adservices/ondevicepersonalization/SurfacePackageToken), which is an opaque reference to content that can be displayed in a [android.view.SurfaceView](../../view/SurfaceView.html#). This may be null if the [IsolatedService](/reference/kotlin/android/adservices/ondevicepersonalization/IsolatedService) has not generated any content to be displayed within the calling app."]]