Skip to main content
RadarRegion represents a region. Learn more about Regions.

Properties

_id
String
required
The Radar ID of the region.
name
String
required
The name of the region.
code
String
required
The unique code for the region.
type
String
required
The type of the region.
flag
String
The optional flag of the region.
allowed
BOOL
required
A boolean indicating whether the jurisdiction is allowed. May be false if Fraud is not enabled.
passed
BOOL
required
A boolean indicating whether all jurisdiction checks for the region have passed. May be false if Fraud is not enabled.
inExclusionZone
BOOL
required
A boolean indicating whether the user is in an exclusion zone for the jurisdiction. May be false if Fraud is not enabled.
inBufferZone
BOOL
required
A boolean indicating whether the user is too close to the border for the jurisdiction. May be false if Fraud is not enabled.
distanceToBorder
double
required
The distance in meters to the border of the jurisdiction. May be 0 if Fraud is not enabled.
expected
BOOL
required
A boolean indicating whether the jurisdiction is expected based on the values passed to setExpectedJurisdiction().

Methods

dictionaryValue

- (NSDictionary *_Nonnull)dictionaryValue;
Returns the dictionary representation of the region.

Example

let region: RadarRegion = event.region
let regionId = region._id
let regionName = region.name
let regionCode = region.code
let regionType = region.type
let regionFlag = region.flag
let regionAllowed = region.allowed
let regionPassed = region.passed
let regionInExclusionZone = region.inExclusionZone
let regionInBufferZone = region.inBufferZone
let regionDistanceToBorder = region.distanceToBorder
let regionExpected = region.expected
RadarRegion *region = event.region;
NSString *regionId = region._id;
NSString *regionName = region.name;
NSString *regionCode = region.code;
NSString *regionType = region.type;
NSString *regionFlag = region.flag;
BOOL regionAllowed = region.allowed;
BOOL regionPassed = region.passed;
BOOL regionInExclusionZone = region.inExclusionZone;
BOOL regionInBufferZone = region.inBufferZone;
double regionDistanceToBorder = region.distanceToBorder;
BOOL regionExpected = region.expected;
Fraud detection features are only available when Radar Fraud is enabled for your project.