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

Properties

NSSecureCoding Conformance

Initialization

  • Creates a CLLocationSourceInformation instance with the specified source metadata.

    Declaration

    Swift

    public init(softwareSimulationState isSoftware: Bool, andExternalAccessoryState isAccessory: Bool)

    Parameters

    isSoftware

    true if the location was generated by a software simulator, otherwise false.

    isAccessory

    true if the location was generated by an external accessory, otherwise false. Apple Documentation

NSCopying Conformance

  • Creates a copy of this CLLocationSourceInformation instance.

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

    Return Value

    A new CLLocationSourceInformation object with the same properties. Apple Documentation

NSSecureCoding Conformance

  • Initializes a CLLocationSourceInformation from an NSCoder.

    Declaration

    Swift

    public required init?(coder: NSCoder)

    Parameters

    coder

    The NSCoder instance used to decode the properties.

  • Encodes this CLLocationSourceInformation into an NSCoder.

    Declaration

    Swift

    public func encode(with coder: NSCoder)

    Parameters

    coder

    The NSCoder instance used to encode the properties.