activateLocationComponent

@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
fun activateLocationComponent(context: Context, action: OnLocationUpdate? = null)

Activate the user's location component on the MapView.

Parameters

context

A context where you already have location permissions granted (see LocationPermissionManager).

action

An action that will be called periodically with the latest user Location.