RadarEvent
@interface RadarEvent : NSObject
Represents a change in user state. For more information, see https://radar.io/documentation.
-
The Radar ID of the event.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nonnull) NSString *_id;
Swift
var _id: String { get }
-
The datetime when the event was created.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nonnull) NSDate *createdAt;
Swift
var createdAt: Date { get }
-
A boolean indicating whether the event was generated with your live API key.
Declaration
Objective-C
@property (readonly, assign, nonatomic) BOOL live;
Swift
var live: Bool { get }
-
The type of the event.
Declaration
Objective-C
@property (readonly, assign, nonatomic) RadarEventType type;
Swift
var type: RadarEventType { get }
-
The geofence for which the event was generated. May be
nil
for non-geofence events.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) RadarGeofence *geofence;
Swift
var geofence: RadarGeofence? { get }
-
The place for which the event was generated. May be
nil
for non-place events.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) RadarPlace *place;
Swift
var place: RadarPlace? { get }
-
For place entry events, alternate place candidates. May be
nil
for non-place events.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSArray<RadarPlace *> *alternatePlaces;
Swift
var alternatePlaces: [RadarPlace]? { get }
-
For accepted place entry events, the verified place. May be
nil
for non-place events or unverified events.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) RadarPlace *verifiedPlace;
Swift
var verifiedPlace: RadarPlace? { get }
-
The verification of the event.
Declaration
Objective-C
@property (readonly, assign, nonatomic) RadarEventVerification verification;
Swift
var verification: RadarEventVerification { get }
-
The confidence level of the event.
Declaration
Objective-C
@property (readonly, assign, nonatomic) RadarEventConfidence confidence;
Swift
var confidence: RadarEventConfidence { get }
-
The duration between entry and exit events, in minutes, for exit events. 0 for entry events.
Declaration
Objective-C
@property (readonly, assign, nonatomic) float duration;
Swift
var duration: Float { get }
-
The location of the event.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nonnull) CLLocation *location;
Swift
var location: CLLocation { get }