NextFTC Suite
Toggle table of contents
0.0.1
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
NextFTC Suite
NextFTC Hardware
/
dev.nextftc.hardware.sensors
/
NextColorDistanceSensor
/
isWithinDistance
is
Within
Distance
@
JvmOverloads
fun
isWithinDistance
(
threshold
:
Double
,
unit
:
DistanceUnit
=
DistanceUnit.CM
)
:
Boolean
True if a distance sensor senses an object within
threshold
in the given
unit
.