Language

ExecuteOutput.Builder.SetBestValue(Int32) Method

Definition

Sets an index into the best values supplied in the request's app params.

[Android.Runtime.Register("setBestValue", "(I)Landroid/adservices/ondevicepersonalization/ExecuteOutput$Builder;", "", ApiSince=36)]
public Android.AdServices.OnDevicePersonalization.ExecuteOutput.Builder SetBestValue(int value);
[<Android.Runtime.Register("setBestValue", "(I)Landroid/adservices/ondevicepersonalization/ExecuteOutput$Builder;", "", ApiSince=36)>]
member this.SetBestValue : int -> Android.AdServices.OnDevicePersonalization.ExecuteOutput.Builder

Parameters

value
Int32

The non-negative integer index of the best value in the request's app params.

Returns

This builder, with the best value assigned.

Attributes

Remarks

Sets the integer index of a best value that an IsolatedService may return to a calling app. The value must be between 0 and ExecuteInIsolatedServiceRequest.OutputSpec.MaxIntValue. The platform may add noise to this value before returning it to the caller of OnDevicePersonalizationManager.ExecuteInIsolatedService. To receive this value, the calling-app and service pair must be allowlisted and ExecuteInIsolatedServiceRequest.OutputSpec.BuildBestValueSpec must be set.

Android reference for android.adservices.ondevicepersonalization.ExecuteOutput.Builder.setBestValue.

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