Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder class to create SignalStrengthUpdateRequest
object.
Summary
Public constructors
Public methods
setReportingRequestedWhileIdle
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SignalStrengthUpdateRequest.Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/SignalStrengthUpdateRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.telephony.SignalStrengthUpdateRequest.Builder](#) |\n\nBuilder class to create [SignalStrengthUpdateRequest](/reference/kotlin/android/telephony/SignalStrengthUpdateRequest) object.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SignalStrengthUpdateRequest](/reference/kotlin/android/telephony/SignalStrengthUpdateRequest) | [build](#build())`()` Build a [SignalStrengthUpdateRequest](/reference/kotlin/android/telephony/SignalStrengthUpdateRequest) object. |\n| [SignalStrengthUpdateRequest.Builder](#) | [setReportingRequestedWhileIdle](#setReportingRequestedWhileIdle(kotlin.Boolean))`(`isReportingRequestedWhileIdle:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Set the builder object if require reporting on thresholds in this request when device is idle. |\n| [SignalStrengthUpdateRequest.Builder](#) | [setSignalThresholdInfos](#setSignalThresholdInfos(kotlin.collections.MutableCollection))`(`signalThresholdInfos:` `[MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\u003c[SignalThresholdInfo](/reference/kotlin/android/telephony/SignalThresholdInfo)!\u003e`)` Set the collection of SignalThresholdInfo for the builder object |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): SignalStrengthUpdateRequest\n```\n\nBuild a [SignalStrengthUpdateRequest](/reference/kotlin/android/telephony/SignalStrengthUpdateRequest) object.\n\n| Return ||\n|------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|\n| [SignalStrengthUpdateRequest](/reference/kotlin/android/telephony/SignalStrengthUpdateRequest) | the SignalStrengthUpdateRequest object This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `java.lang.IllegalArgumentException` | if the SignalThresholdInfo collection is empty size, the signal measurement type for the same RAN in the collection is not unique |\n\n### setReportingRequestedWhileIdle\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setReportingRequestedWhileIdle(isReportingRequestedWhileIdle: Boolean): SignalStrengthUpdateRequest.Builder\n```\n\nSet the builder object if require reporting on thresholds in this request when device is idle.\n\n| Parameters ||\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `isReportingRequestedWhileIdle` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html): true if request reporting when device is idle |\n\n| Return ||\n|------------------------------------------|---------------------------------------------------------------------|\n| [SignalStrengthUpdateRequest.Builder](#) | the builder to facilitate the chaining This value cannot be `null`. |\n\n### setSignalThresholdInfos\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setSignalThresholdInfos(signalThresholdInfos: MutableCollection\u003cSignalThresholdInfo!\u003e): SignalStrengthUpdateRequest.Builder\n```\n\nSet the collection of SignalThresholdInfo for the builder object\n\n| Parameters ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `signalThresholdInfos` | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\\\u003c[SignalThresholdInfo](/reference/kotlin/android/telephony/SignalThresholdInfo)!\\\u003e: the collection of SignalThresholdInfo This value cannot be `null`. |\n\n| Return ||\n|------------------------------------------|---------------------------------------------------------------------|\n| [SignalStrengthUpdateRequest.Builder](#) | the builder to facilitate the chaining This value cannot be `null`. |"]]