distance

open fun distance(environmentalFactor: Double = 2.0): Double

Calculates the distance to the device in meters

Return

the distance to the device in meters

Parameters

environmentalFactor

the constant to account for environmental interference. Should usually range between 2.0 and 4.0