Language

ExecuteOutput.BestValue Property

Definition

An integer index into the best values supplied in the request's app params that an IsolatedService may optionally return to a calling app.

public int BestValue { [Android.Runtime.Register("getBestValue", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getBestValue", "()I", "", ApiSince=36)>]
member this.BestValue : int

Property Value

Value is ExecuteInIsolatedServiceResponse.DEFAULT_BEST_VALUE or greater

Attributes

Remarks

An integer index into the best values supplied in the request's app params that an IsolatedService may optionally return to a calling app. The valid range is 0 through ExecuteInIsolatedServiceRequest.OutputSpec.MaxIntValue. The platform may add noise to the value of this field before returning it to the caller of OnDevicePersonalizationManager#executeInIsolatedService. In order to get this field, the (calling app package, isolated service package) pair must be present in an allowlist that permits data to be returned and ExecuteInIsolatedServiceRequest.OutputSpec#buildBestValueSpec is set.

Java documentation for android.adservices.ondevicepersonalization.ExecuteOutput.getBestValue().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to