Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for creating instances of SessionConfig
.
Summary
Public constructors
Public methods
setAngleOfArrivalNeeded
fun setAngleOfArrivalNeeded(isAngleOfArrivalNeeded: Boolean): SessionConfig.Builder
Sets whether Angle of Arrival (AoA) is required for the ranging operation.
Defaults to false
Parameters |
isAngleOfArrivalNeeded |
Boolean: true if AoA data is required; false otherwise. |
setDataNotificationConfig
fun setDataNotificationConfig(config: DataNotificationConfig): SessionConfig.Builder
Sets the data notification configuration for this preference.
Exceptions |
java.lang.IllegalArgumentException |
if the config is null. |
setRangingMeasurementsLimit
fun setRangingMeasurementsLimit(rangingMeasurementsLimit: Int): SessionConfig.Builder
Sets the maximum number of ranging rounds for this session. This includes all ranging rounds, irrespective of whether they were successful or not. For 1:many sessions, a round includes ranging to all peers within that round.
By default, when the value is set to 0
, the ranging session will run indefinitely.
Parameters |
rangingMeasurementsLimit |
Int: the maximum number of ranging rounds (0 to 65535). Value is between 0 and 65535 inclusive |
Exceptions |
java.lang.IllegalArgumentException |
if the value is outside the allowed range (0 to 65535). |
setSensorFusionParams
fun setSensorFusionParams(parameters: SensorFusionParams): SessionConfig.Builder
Sets the sensor fusion parameters for this preference.
Exceptions |
java.lang.IllegalArgumentException |
if the parameters is null. |
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-01-23 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-01-23 UTC."],[],[]]