语言

SignalThresholdInfo.Builder.SetThresholds(Int32[]) 方法

定义

设置相应信号度量类型的信号强度阈值。

[Android.Runtime.Register("setThresholds", "([I)Landroid/telephony/SignalThresholdInfo$Builder;", "", ApiSince=31)]
public Android.Telephony.SignalThresholdInfo.Builder SetThresholds(int[] thresholds);
[<Android.Runtime.Register("setThresholds", "([I)Landroid/telephony/SignalThresholdInfo$Builder;", "", ApiSince=31)>]
member this.SetThresholds : int[] -> Android.Telephony.SignalThresholdInfo.Builder

参数

thresholds
Int32[]

整数数组作为信号阈值。 此值不能为 null。

返回

用于促进链接的生成器。 此值不能为 null。

特性

注解

设置相应信号度量类型的信号强度阈值。 范围和单元必须引用特定的 SignalMeasurementType。 阈值的长度必须介于 MinimumNumberOfThresholdsAllowed 和 MaximumNumberOfThresholdsAllowed之间。 否则将引发 IllegalArgumentException。

Android 参考。android.telephony.SignalThresholdInfo.Builder.setThresholds

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

适用于