verifyLocationState

@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
suspend fun verifyLocationState(): Boolean

Checks if location services are active

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

Return

True when the location services are active

See also

For a variation using callbacks