LCIMLocationMessage
Objective-C
@interface LCIMLocationMessage : LCIMTypedMessage <LCIMTypedMessageSubclassing>
Swift
class LCIMLocationMessage : LCIMTypedMessage, LCIMTypedMessageSubclassing
Location Message.
-
Latitude. Should be 0~90.
Declaration
Objective-C
@property (nonatomic, readonly) double latitude;Swift
var latitude: Double { get } -
Longitude, Should be 0~360.
Declaration
Objective-C
@property (nonatomic, readonly) double longitude;Swift
var longitude: Double { get } -
Create a location message.
Declaration
Objective-C
+ (nonnull instancetype)messageWithText:(NSString *_Nullable)text latitude:(double)latitude longitude:(double)longitude attributes:(NSDictionary *_Nullable)attributes;Swift
convenience init(text: String?, latitude: Double, longitude: Double, attributes: [AnyHashable : Any]? = nil)Parameters
textThe string text.
latitudeThe latitude of GeoPoint.
longitudeThe longitude of GeoPoint.
attributesThe custom attributes.
View on GitHub
Install in Dash
LCIMLocationMessage Class Reference