hasLocationPermission

fun hasLocationPermission(preciseLocation: Boolean = true): Boolean

Checks if the app has the required location permissions.

Return

true if the required permissions are granted

Parameters

preciseLocation

true to check for ACCESS_FINE_LOCATION, false to check only ACCESS_COARSE_LOCATION