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

    SKLocationAuthorizationWhenInUse

    Swift

    case whenInUse = 0
  • Location can be acquired even when the app is running in the background.

    Declaration

    Objective-C

    SKLocationAuthorizationAlways

    Swift

    case always = 1