SKLocationAuthorization
Objective-C
enum SKLocationAuthorization : NSUInteger {}
Swift
enum SKLocationAuthorization : UInt, @unchecked Sendable
These constants indicate the authorization of the Location sensor.
-
Location can be acquired only when the app is running in the foreground.
Declaration
Objective-C
SKLocationAuthorizationWhenInUseSwift
case whenInUse = 0 -
Location can be acquired even when the app is running in the background.
Declaration
Objective-C
SKLocationAuthorizationAlwaysSwift
case always = 1
View on GitHub