open class SystemServicePermissioner
A class to ask a user to grant access to different system-level services, such as CoreMotion, HealthKit and Notification delivery.
Works together with
Attempts to find out whether permission to the respective service has already been granted.
open func hasPermission(for service: SystemService) -> Bool
The SystemService to inquire for
A block to be executed when status has been determined; executed on the main queue
Requests permission to the specified system service, asynchronously.
open func requestPermission(for service: SystemService, callback: @escaping ((Error?) -> Void))
The SystemService to request access to
A block to be executed when the request has been granted or denied; executed on the main queue