hasPermission

abstract fun hasPermission(): Boolean

Checks if the app has the necessary permissions to access the device's location.

Return

true if the app has the necessary permissions, false otherwise.