LocationPermissionController

Defines a controller for managing location permissions.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun hasPermission(): Boolean

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

Link copied to clipboard
abstract suspend fun requirePermissionFor(priority: Priority): PermissionState

Requests the necessary permissions to access the device's location.

Link copied to clipboard
open suspend fun requirePermissionForOrThrow(priority: Priority)

Requests the necessary permissions to access the device's location, and throws an exception if the permission is denied.