MainCLLocationManagerAccessor

class MainCLLocationManagerAccessor(onInit: CLLocationManager.() -> Unit)

Accessor to ensure a CLLocationManager is only managed from the Main Thread. Use updateLocationManager to gain access to the LocationManager

Parameters

onInit

callback to modify the CLLocationManager after it is initialized

Constructors

Link copied to clipboard
constructor(onInit: CLLocationManager.() -> Unit)

Functions

Link copied to clipboard
suspend fun <T> updateLocationManager(update: suspend CLLocationManager.() -> T): T