RadarUser
Objective-C
@interface RadarUser : NSObject
Swift
class RadarUser : NSObject
Represents the current user state.
-
The Radar ID of the user.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *_id;Swift
var _id: String { get } -
The unique ID of the user, provided when you identified the user. May be
nilif the user has not been identified.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *userId;Swift
var userId: String? { get } -
The device ID of the user.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *deviceId;Swift
var deviceId: String? { get } -
The optional description of the user. Not to be confused with the
NSObjectdescriptionproperty.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *__description;Swift
var __description: String? { get } -
The optional set of custom key-value pairs for the user.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSDictionary *metadata;Swift
var metadata: [AnyHashable : Any]? { get } -
The user’s current location.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nonnull) CLLocation *location;Swift
var location: CLLocation { get } -
An array of the user’s current geofences. May be
nilor empty if the user is not in any geofences.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<RadarGeofence *> *geofences;Swift
var geofences: [RadarGeofence]? { get } -
The user’s current place. May be
nilif the user is not at a place or if Places is not enabled.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) RadarPlace *place;Swift
@NSCopying var place: RadarPlace? { get } -
An array of the user’s nearby beacons. May be
nilor empty if the user is not near any beacons or if Beacons is not enabled.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<RadarBeacon *> *beacons;Swift
var beacons: [RadarBeacon]? { get } -
A boolean indicating whether the user is stopped.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL stopped;Swift
var stopped: Bool { get } -
A boolean indicating whether the user was last updated in the foreground.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL foreground;Swift
var foreground: Bool { get } -
The user’s current country. May be
nilif country is not available or if Regions is not enabled.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) RadarRegion *country;Swift
var country: RadarRegion? { get } -
The user’s current state. May be
nilif state is not available or if Regions is not enabled.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) RadarRegion *state;Swift
var state: RadarRegion? { get } -
The user’s current designated market area (DMA). May be
nilif DMA is not available or if Regions is not enabled.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) RadarRegion *dma;Swift
var dma: RadarRegion? { get } -
The user’s current postal code. May be
nilif postal code is not available or if Regions is not enabled.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) RadarRegion *postalCode;Swift
var postalCode: RadarRegion? { get } -
The user’s nearby chains. May be
nilif no chains are nearby or if nearby chains are not enabled.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<RadarChain *> *nearbyPlaceChains;Swift
var nearbyPlaceChains: [RadarChain]? { get } -
The user’s segments. May be
nilif segments are not enabled.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<RadarSegment *> *segments;Swift
var segments: [RadarSegment]? { get } -
The user’s nearby chains. May be
nilif segments are not enabled.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<RadarChain *> *topChains;Swift
var topChains: [RadarChain]? { get } -
The source of the user’s current location.
Declaration
Objective-C
@property (nonatomic, readonly) RadarLocationSource source; -
A boolean indicating whether the user’s IP address is a known proxy. May be
falseif Fraud is not enabled.Declaration
Objective-C
@property (nonatomic, readonly) BOOL proxy;Swift
var proxy: Bool { get } -
A boolean indicating whether the user’s location is being mocked, such as in a simulation. May be
falseif Fraud is not enabled.Declaration
Objective-C
@property (nonatomic, readonly) BOOL mocked;Swift
var mocked: Bool { get } -
Learned fraud state for the user.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) RadarFraud *fraud;Swift
@NSCopying var fraud: RadarFraud { get } -
The user’s current trip.
View on GitHub
RadarUser Class Reference