startNotifyPositionChanges

fun BlueGPSLib.startNotifyPositionChanges(checkTimeout: Int = 30000, callbackHandler: (Position) -> Unit? = null, onStopEvent: (String) -> Unit? = null)

Accessory method for activate the notify position change. If a previously job is active, its stopped and a new job started with the new configuration.

Parameters

callbackHandler

the callback

onStopEvent

event the SDK automatically stop the job and notify to the user