# Print output for @column tags ?>
public
static
final
class
SignalThresholdInfo.Builder
extends Object
| java.lang.Object | |
| ↳ | android.telephony.SignalThresholdInfo.Builder |
Builder class to create SignalThresholdInfo objects.
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
SignalThresholdInfo
|
build()
Build |
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 Builder ()
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 |
public SignalThresholdInfo.Builder setRadioAccessNetworkType (int ran)
Set the radio access network type for the builder instance.
| Returns | |
|---|---|
SignalThresholdInfo.Builder |
the builder to facilitate the chaining
This value cannot be null. |
public SignalThresholdInfo.Builder setSignalMeasurementType (int signalMeasurementType)
Set the signal measurement type for the builder instance.
| Returns | |
|---|---|
SignalThresholdInfo.Builder |
the builder to facilitate the chaining
This value cannot be null. |
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:
SignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSSISignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSCPSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSRPSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSRQSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_RSSNRSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSRSRPSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSRSRQSignalThresholdInfo.SIGNAL_MEASUREMENT_TYPE_SSSINRfor more details on signal strength thresholds