Language

SignalThresholdInfo.Builder.SetThresholds(Int32[]) Method

Definition

Set the signal strength thresholds of the corresponding signal measurement type.

[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

Parameters

thresholds
Int32[]

array of integer as the signal threshold values. This value cannot be null.

Returns

the builder to facilitate the chaining. This value cannot be null.

Attributes

Remarks

Set the signal strength thresholds of the corresponding signal measurement type. The range and unit must reference specific SignalMeasurementType. The length of the thresholds should between the numbers return from SignalThresholdInfo.getMinimumNumberOfThresholdsAllowed() and SignalThresholdInfo.getMaximumNumberOfThresholdsAllowed(). An IllegalArgumentException will throw otherwise.

Android reference for android.telephony.SignalThresholdInfo.Builder.setThresholds.

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