CLLocationSourceInformation
open class CLLocationSourceInformation : NSObject, NSCopying, NSSecureCoding
Contains metadata about the source of a location, including whether it was generated by a simulator or an external accessory. Apple Documentation
-
Indicates whether the location was generated by a software simulator, such as Xcode.
Declaration
Swift
public let isSimulatedBySoftware: Bool -
Indicates whether the location was generated by an external accessory, such as CarPlay or an MFi accessory.
Declaration
Swift
public let isProducedByAccessory: Bool
-
Indicates that
CLLocationSourceInformationsupports secure coding. Apple DocumentationDeclaration
Swift
public static let supportsSecureCoding: Bool
-
Creates a
CLLocationSourceInformationinstance with the specified source metadata.Declaration
Swift
public init(softwareSimulationState isSoftware: Bool, andExternalAccessoryState isAccessory: Bool)Parameters
isSoftwaretrueif the location was generated by a software simulator, otherwisefalse.isAccessorytrueif the location was generated by an external accessory, otherwisefalse. Apple Documentation
-
Creates a copy of this
CLLocationSourceInformationinstance.Declaration
Swift
public func copy(with zone: NSZone? = nil) -> AnyReturn Value
A new
CLLocationSourceInformationobject with the same properties. Apple Documentation
-
Initializes a
CLLocationSourceInformationfrom anNSCoder.Declaration
Swift
public required init?(coder: NSCoder)Parameters
coderThe
NSCoderinstance used to decode the properties. -
Encodes this
CLLocationSourceInformationinto anNSCoder.Declaration
Swift
public func encode(with coder: NSCoder)Parameters
coderThe
NSCoderinstance used to encode the properties.
View on GitHub