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

    text

    The string text.

    latitude

    The latitude of GeoPoint.

    longitude

    The longitude of GeoPoint.

    attributes

    The custom attributes.