Language

ExecuteInIsolatedServiceResponse.BestValue Property

Definition

Returns the index of the best value for the request, or the default best-value sentinel.

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

Property Value

Value is DEFAULT_BEST_VALUE or greater

Attributes

Remarks

Returns the index of the best value for the request. If ExecuteInIsolatedServiceRequest output type is set to ExecuteInIsolatedServiceRequest.OutputSpec#OUTPUT_TYPE_NULL, the platform ignores the best value 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 may apply noise to the result. If platform data is provided, a best value outside the configured range is replaced with the default value.

Java documentation for android.adservices.ondevicepersonalization.ExecuteInIsolatedServiceResponse.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