DBTEAMLOGGeoLocationLogInfo

Objective-C

@interface DBTEAMLOGGeoLocationLogInfo : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMLOGGeoLocationLogInfo : NSObject, DBSerializable, NSCopying

The GeoLocationLogInfo struct.

Geographic location details.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • City name.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *city;

    Swift

    var city: String? { get }
  • Region name.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *region;

    Swift

    var region: String? { get }
  • Country code.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *country;

    Swift

    var country: String? { get }
  • IP address.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull ipAddress;

    Swift

    var ipAddress: String { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIpAddress:(nonnull NSString *)ipAddress
                                         city:(nullable NSString *)city
                                       region:(nullable NSString *)region
                                      country:(nullable NSString *)country;

    Swift

    init(ipAddress: String, city: String?, region: String?, country: String?)

    Parameters

    ipAddress

    IP address.

    city

    City name.

    region

    Region name.

    country

    Country code.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithIpAddress:(nonnull NSString *)ipAddress;

    Swift

    init(ipAddress: String)

    Parameters

    ipAddress

    IP address.

    Return Value

    An initialized instance.