Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder class for constructing instances of RawResponderRangingParams.
Summary
Public constructors
Public methods
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-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# RawResponderRangingConfig.Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/ranging/raw/RawResponderRangingConfig.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.ranging.raw.RawResponderRangingConfig.Builder](#) |\n\nBuilder class for constructing instances of RawResponderRangingParams.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RawResponderRangingConfig](/reference/kotlin/android/ranging/raw/RawResponderRangingConfig) | [build](#build())`()` Builds and returns a new RawResponderRangingParams instance. |\n| [RawResponderRangingConfig.Builder](#) | [setRawRangingDevice](#setRawRangingDevice(android.ranging.raw.RawRangingDevice))`(`rangingDevice:` `[RawRangingDevice](/reference/kotlin/android/ranging/raw/RawRangingDevice)`)` Sets the [android.ranging.raw.RawRangingDevice](/reference/kotlin/android/ranging/raw/RawRangingDevice) for this responder session. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): RawResponderRangingConfig\n```\n\nBuilds and returns a new RawResponderRangingParams instance.\n\n| Return ||\n|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| [RawResponderRangingConfig](/reference/kotlin/android/ranging/raw/RawResponderRangingConfig) | a configured instance of RawResponderRangingParams. This value cannot be `null`. |\n\n### setRawRangingDevice\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setRawRangingDevice(rangingDevice: RawRangingDevice): RawResponderRangingConfig.Builder\n```\n\nSets the [android.ranging.raw.RawRangingDevice](/reference/kotlin/android/ranging/raw/RawRangingDevice) for this responder session.\n\n| Parameters ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `rangingDevice` | [RawRangingDevice](/reference/kotlin/android/ranging/raw/RawRangingDevice): the raw ranging device. This value cannot be `null`. |\n\n| Return ||\n|----------------------------------------|----------------------------------------------------------|\n| [RawResponderRangingConfig.Builder](#) | this [Builder](#) instance. This value cannot be `null`. |"]]