ExecuteInIsolatedServiceResponse
public
class
ExecuteInIsolatedServiceResponse
extends Object
| java.lang.Object | |
| ↳ | android.adservices.ondevicepersonalization.ExecuteInIsolatedServiceResponse |
This class is deprecated.
The ODP APIs are deprecated and will not be supported in future Android releases.
There is no direct replacement API available. Developers currently integrated with these APIs
must cease further integration efforts. For comprehensive details regarding this deprecation and
the future roadmap of Privacy Sandbox on Android, please consult the official Privacy Sandbox
developer documentation and announcements:
https://privacysandbox.google.com
The response of OnDevicePersonalizationManager.executeInIsolatedService.
Summary
Constants | |
|---|---|
int |
DEFAULT_BEST_VALUE
The default value of |
Public constructors | |
|---|---|
ExecuteInIsolatedServiceResponse(SurfacePackageToken surfacePackageToken, int bestValue)
Creates a new ExecuteInIsolatedServiceResponse. |
|
Public methods | |
|---|---|
int
|
getBestValue()
Returns the int value that was returned by the |
SurfacePackageToken
|
getSurfacePackageToken()
Returns a |
Inherited methods | |
|---|---|
Constants
DEFAULT_BEST_VALUE
public static final int DEFAULT_BEST_VALUE
The default value of ExecuteInIsolatedServiceResponse.getBestValue if IsolatedService didn't return any content.
Constant Value: -1 (0xffffffff)
Public constructors
ExecuteInIsolatedServiceResponse
public ExecuteInIsolatedServiceResponse (SurfacePackageToken surfacePackageToken, int bestValue)
Creates a new ExecuteInIsolatedServiceResponse.
| Parameters | |
|---|---|
surfacePackageToken |
SurfacePackageToken: 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. |
bestValue |
int: an int value that was returned by the IsolatedService and applied
noise.If ExecuteInIsolatedServiceRequest output type is set to ExecuteInIsolatedServiceRequest.OutputSpec.OUTPUT_TYPE_NULL, the platform ignores the
data returned by IsolatedService and returns the default value DEFAULT_BEST_VALUE. If ExecuteInIsolatedServiceRequest output type is set to
ExecuteInIsolatedServiceRequest.OutputSpec.OUTPUT_TYPE_BEST_VALUE, the platform
validates ExecuteOutput.getBestValue between 0 and ExecuteInIsolatedServiceRequest.OutputSpec.getMaxIntValue and applies noise to result.
Value is DEFAULT_BEST_VALUE or greater |
Public methods
getBestValue
public int getBestValue ()
Returns the int value that was returned by the IsolatedService and applied noise. If
ExecuteInIsolatedServiceRequest output type is set to ExecuteInIsolatedServiceRequest.OutputSpec.OUTPUT_TYPE_NULL, the platform ignores the data
returned by IsolatedService and returns the default value DEFAULT_BEST_VALUE. If ExecuteInIsolatedServiceRequest output type is set to ExecuteInIsolatedServiceRequest.OutputSpec.OUTPUT_TYPE_BEST_VALUE, the platform validates
ExecuteOutput.getBestValue between 0 and ExecuteInIsolatedServiceRequest.OutputSpec.getMaxIntValue() and applies noise to result.
| Returns | |
|---|---|
int |
Value is DEFAULT_BEST_VALUE or greater |
getSurfacePackageToken
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 |
|