Type Definitions
The following type definitions are available globally.
-
Called when a location request succeeds, fails, or times out. Receives the request status and, if successful, the location.
Declaration
Objective-C
typedef void (^_Nullable RadarLocationCompletionHandler)(RadarStatus, CLLocation *_Nullable, BOOL)
Swift
typealias RadarLocationCompletionHandler = (RadarStatus, CLLocation?, Bool) -> Void
-
Called when a track request succeeds, fails, or times out. Receives the request status and, if successful, the user’s location, an array of the events generated, and the user.
Declaration
Objective-C
typedef void (^_Nullable RadarTrackCompletionHandler)( RadarStatus, CLLocation *_Nullable, NSArray<RadarEvent *> *_Nullable, RadarUser *_Nullable)
Swift
typealias RadarTrackCompletionHandler = (RadarStatus, CLLocation?, [RadarEvent]?, RadarUser?) -> Void
-
Called when a place search request succeeds, fails, or times out. Receives the request status and, if successful, the location and an array of places sorted by distance.
Declaration
Objective-C
typedef void (^_Nonnull RadarSearchPlacesCompletionHandler)( RadarStatus, CLLocation *_Nullable, NSArray<RadarPlace *> *_Nullable)
Swift
typealias RadarSearchPlacesCompletionHandler = (RadarStatus, CLLocation?, [RadarPlace]?) -> Void