# Print output for @column tags ?> SignalThresholdInfo.Builder - Android SDK | Android Developers

Most visited

Recently visited

SignalThresholdInfo.Builder

public static final class SignalThresholdInfo.Builder
extends Object

java.lang.Object
   ↳ android.telephony.SignalThresholdInfo.Builder


Builder class to create SignalThresholdInfo objects.

Summary

Public constructors

Builder()

Public methods

SignalThresholdInfo build()

Build SignalThresholdInfo object.

SignalThresholdInfo.Builder setRadioAccessNetworkType(int ran)

Set the radio access network type for the builder instance.

SignalThresholdInfo.Builder setSignalMeasurementType(int signalMeasurementType)

Set the signal measurement type for the builder instance.

SignalThresholdInfo.Builder setThresholds(int[] thresholds)

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

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public SignalThresholdInfo build ()

Build SignalThresholdInfo object.

Returns
SignalThresholdInfo the SignalThresholdInfo object build out This value cannot be null.

Throws
IllegalArgumentException if the signal measurement type is invalid, any value in the thresholds is out of range, or the RAN is not allowed to set with the signal measurement type

setRadioAccessNetworkType

public SignalThresholdInfo.Builder setRadioAccessNetworkType (int ran)

Set the radio access network type for the builder instance.

Parameters
ran int: The radio access network type Value is AccessNetworkConstants.AccessNetworkType.UNKNOWN, AccessNetworkConstants.AccessNetworkType.GERAN, AccessNetworkConstants.AccessNetworkType.UTRAN, AccessNetworkConstants.AccessNetworkType.EUTRAN, AccessNetworkConstants.AccessNetworkType.CDMA2000, AccessNetworkConstants.AccessNetworkType.IWLAN, or AccessNetworkConstants.AccessNetworkType.NGRAN

Returns
SignalThresholdInfo.Builder the builder to facilitate the chaining This value cannot be null.

setSignalMeasurementType

public SignalThresholdInfo.Builder setSignalMeasurementType (int signalMeasurementType)

Set the signal measurement type for the builder instance.

Parameters
signalMeasurementType int: The signal measurement type Value is SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_UNKNOWN, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSSI, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSCP, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSRP, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSRQ, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSSNR, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSRSRP, SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSRSRQ, or SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSSINR

Returns
SignalThresholdInfo.Builder the builder to facilitate the chaining This value cannot be null.

setThresholds

public SignalThresholdInfo.Builder setThresholds (int[] thresholds)

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.

Parameters
thresholds int: array of integer as the signal threshold values This value cannot be null.

Returns
SignalThresholdInfo.Builder the builder to facilitate the chaining This value cannot be null.

See also: