Location
@objc
public class Location : NSObject, Decodable, NSCoding
Small class to store location coordinates. This is used in preferences over CoreLocation types to avoid extra linking requirements for the SDK.
-
The latitude of this location coordinate.
Declaration
Swift
public let latitude: Double
-
The longitude of this location coordinate.
Declaration
Swift
public let longitude: Double
-
Initializer for a location object.
Declaration
Swift
public init(latitude: Double, longitude: Double)
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Required initializer for NSCoding conformance.
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Required encoding function for NSCoding conformance.
Declaration
Swift
public func encode(with aCoder: NSCoder)