RadarUser

@interface RadarUser : NSObject

Represents the current user state. For more information, see https://radar.io/documentation.

  • _id

    The Radar ID of the user.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nonnull) NSString *_id;

    Swift

    var _id: String { get }
  • The unique ID of the user, provided when you identified the user. May be nil if the user has not been identified.

    Declaration

    Objective-C

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

    Swift

    var userId: String? { get }
  • The device ID of the user.

    Declaration

    Objective-C

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

    Swift

    var deviceId: String? { get }
  • The optional description of the user. Not to be confused with the NSObject description property.

    Declaration

    Objective-C

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

    Swift

    var _description: String? { get }
  • The optional set of custom key-value pairs for the user.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSDictionary *metadata;

    Swift

    var metadata: [AnyHashable : Any]? { get }
  • The user’s last known location.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) CLLocation *location;

    Swift

    var location: CLLocation { get }
  • An array of the user’s last known geofences. May be nil or empty if the user is not in any geofences.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSArray<RadarGeofence *> *geofences;

    Swift

    var geofences: [RadarGeofence]? { get }
  • The user’s last known place. May be nil if the user is not at a place, or if Places is turned off.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) RadarPlace *place;

    Swift

    @NSCopying var place: RadarPlace? { get }
  • Learned insights for the user. May be nil if no insights are available, or if Insights is turned off.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) RadarUserInsights *insights;

    Swift

    var insights: RadarUserInsights? { get }
  • A boolean indicating whether the user is stopped.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) BOOL stopped;

    Swift

    var stopped: Bool { get }
  • A boolean indicating whether the user was last updated in the foreground.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) BOOL foreground;

    Swift

    var foreground: Bool { get }