PermissionsService
enum PermissionsService
A service for managing permissions.
-
Get Location permission status.
Declaration
Swift
@available(*, deprecated, message: "Use vanilla CoreLocation instead.") static func getLocationPermissionStatus() -> Bool
Return Value
A boolean indicating whether the app has location permission.
-
Request Location permission.
Declaration
Swift
@available(*, deprecated, message: "Use vanilla CoreLocation instead.") static func requestLocationPermission(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure to execute when the request is complete.
Return Value
A boolean indicating whether the app has location permission.
-
Request Notification permission.
Declaration
Swift
static func requestNotificationPermission(completion: @escaping (Bool) -> Void)
Parameters
completion
A closure to execute when the request is complete.
Return Value
A boolean indicating whether the app has notification permission.
-
Get Notification permission status.
Declaration
Swift
static func getNotificationPermissionStatus() -> Bool
Return Value
A boolean indicating whether the app has notification permission.