startNotifyRegionChanges

fun BlueGPSLib.startNotifyRegionChanges(checkTimeout: Int = 30000, tags: List<String>? = null, regions: List<BGPRegion>, callbackHandler: (MutableMap<String, MutableList<BGPRegion>>) -> Unit, onStop: (String) -> Unit? = null)

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

Parameters

tags

a list of tags to monitoring

regions

a list of region to monitoring

callbackHandler

returns a map that contains the regions where the tags are currently located

onStop

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