语言

ExecuteInIsolatedServiceResponse.BestValue 属性

定义

返回请求的最佳值的索引,或默认的最佳值 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

属性值

值DEFAULT_BEST_VALUE或更大

特性

注解

返回请求的最佳值的索引。 如果 ExecuteInIsolatedServiceRequest 输出类型设置为 ExecuteInIsolatedServiceRequest.OutputSpec#OUTPUT_TYPE_NULL,则平台将忽略返回 IsolatedService 的最佳值,并返回默认值 #DEFAULT_BEST_VALUE。 如果 ExecuteInIsolatedServiceRequest 输出类型设置为 ExecuteInIsolatedServiceRequest.OutputSpec#OUTPUT_TYPE_BEST_VALUE,则平台可能会向结果应用干扰。 如果提供了平台数据,则会将配置范围之外的最佳值替换为默认值。

Java文档android.adservices.ondevicepersonalization.ExecuteInIsolatedServiceResponse.getBestValue()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于