语言

ExecuteInIsolatedServiceRequest.OutputSpec.BuildBestValueSpec(Int32) 方法

定义

创建输出规格以充分利用 maxIntValue。

[Android.Runtime.Register("buildBestValueSpec", "(I)Landroid/adservices/ondevicepersonalization/ExecuteInIsolatedServiceRequest$OutputSpec;", "", ApiSince=36)]
public static Android.AdServices.OnDevicePersonalization.ExecuteInIsolatedServiceRequest.OutputSpec BuildBestValueSpec(int maxIntValue);
[<Android.Runtime.Register("buildBestValueSpec", "(I)Landroid/adservices/ondevicepersonalization/ExecuteInIsolatedServiceRequest$OutputSpec;", "", ApiSince=36)>]
static member BuildBestValueSpec : int -> Android.AdServices.OnDevicePersonalization.ExecuteInIsolatedServiceRequest.OutputSpec

参数

maxIntValue
Int32

为最佳值指定的最大值。 值为 0 或更大。

返回

一个输出规范,用于请求具有指定最大值的最佳值结果。

特性

注解

创建输出规格以充分利用 maxIntValue。 如果设置此项,调用方可以调用 ExecuteInIsolatedServiceResponse.getBestValue 来获取结果。

Android 参考。android.adservices.ondevicepersonalization.ExecuteInIsolatedServiceRequest.OutputSpec.buildBestValueSpec

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于