Added in API level 31

Builder


class Builder
kotlin.Any
   ↳ android.telephony.SignalStrengthUpdateRequest.Builder

Builder class to create SignalStrengthUpdateRequest object.

Summary

Public constructors

Public methods
SignalStrengthUpdateRequest

Build a SignalStrengthUpdateRequest object.

SignalStrengthUpdateRequest.Builder
setReportingRequestedWhileIdle(isReportingRequestedWhileIdle: Boolean)

Set the builder object if require reporting on thresholds in this request when device is idle.

SignalStrengthUpdateRequest.Builder

Set the collection of SignalThresholdInfo for the builder object

Public constructors

Builder

Builder()

Public methods

build

Added in API level 31
fun build(): SignalStrengthUpdateRequest

Build a SignalStrengthUpdateRequest object.

Return
SignalStrengthUpdateRequest the SignalStrengthUpdateRequest object This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if the SignalThresholdInfo collection is empty size, the signal measurement type for the same RAN in the collection is not unique

setReportingRequestedWhileIdle

Added in API level 31
fun setReportingRequestedWhileIdle(isReportingRequestedWhileIdle: Boolean): SignalStrengthUpdateRequest.Builder

Set the builder object if require reporting on thresholds in this request when device is idle.

Parameters
isReportingRequestedWhileIdle Boolean: true if request reporting when device is idle
Return
SignalStrengthUpdateRequest.Builder the builder to facilitate the chaining This value cannot be null.

setSignalThresholdInfos

Added in API level 31
fun setSignalThresholdInfos(signalThresholdInfos: MutableCollection<SignalThresholdInfo!>): SignalStrengthUpdateRequest.Builder

Set the collection of SignalThresholdInfo for the builder object

Parameters
signalThresholdInfos MutableCollection<SignalThresholdInfo!>: the collection of SignalThresholdInfo This value cannot be null.
Return
SignalStrengthUpdateRequest.Builder the builder to facilitate the chaining This value cannot be null.