Slide 19
Slide 19 text
Start Ranging
val request: RangingRequest = RangingRequest.Builder()
.addAccessPoints(scanResults)
.build()
rttManager.startRanging(request, executor, RangingResultCallback(){
fun onRangingFailure(code: Int){ /* handle error*/ }
fun onRangingResult(results: List){
for (result: RangingResult in results){
doSomethingWithResults(
result.getStatus(),
result.getMacAddress(),
result.getDistanceMs()
)
}
}
})
2018.5.27 Google I/O 2018 Θ͍Θ͍ใࠂձ 19