Added in API level 35

OnDevicePersonalizationManager.ExecuteResult


public static class OnDevicePersonalizationManager.ExecuteResult
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.OnDevicePersonalizationManager.ExecuteResult


The result of a call to OnDevicePersonalizationManager#execute(ComponentName, PersistableBundle, Executor, OutcomeReceiver)

Summary

Public methods

byte[] getOutputData()

Returns the output data that was returned by the IsolatedService.

SurfacePackageToken getSurfacePackageToken()

Returns a SurfacePackageToken, which is an opaque reference to content that can be displayed in a SurfaceView.

Inherited methods

Public methods

getOutputData

Added in API level 35
public byte[] getOutputData ()

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.

Returns
byte[]

getSurfacePackageToken

Added in API level 35
public SurfacePackageToken getSurfacePackageToken ()

Returns a SurfacePackageToken, which is an opaque reference to content that can be displayed in a SurfaceView. This may be null if the IsolatedService has not generated any content to be displayed within the calling app.

Returns
SurfacePackageToken