verifyLocationStateAsync

@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
fun verifyLocationStateAsync(callback: PermissionRequestCallback? = null)

Checks if location services are active

If not, automatically requests it's activation to the user

Parameters

callback

Called with a boolean parameter indicating the activation request state

See also

For a variation using coroutines suspended functions