AuthorizeLocation
public class AuthorizeLocation : NSObject, AuthorizeProtocol, CLLocationManagerDelegate, @unchecked Sendable
定位授权
-
Undocumented
Declaration
Swift
public static let shared: AuthorizeLocation
-
Undocumented
Declaration
Swift
public static let always: AuthorizeLocation
-
Undocumented
Declaration
Swift
public lazy var locationManager: CLLocationManager { get set }
-
Undocumented
Declaration
Swift
public init(isAlways: Bool = false)
-
Undocumented
Declaration
Swift
public static func authorizeStatus(for manager: CLLocationManager, isAlways: Bool = false) -> AuthorizeStatus
-
Declaration
Swift
public func authorizeStatus() -> AuthorizeStatus
-
Declaration
Swift
public func requestAuthorize(_ completion: (@MainActor @Sendable (AuthorizeStatus, Error?) -> Void)?)
-
Undocumented
Declaration
Swift
public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager)
-
Undocumented
Declaration
Swift
public func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus)