RadarDelegate
@protocol RadarDelegate <NSObject>
A delegate for client-side delivery of events and location updates. For more information, see https://radar.io/documentation/sdk.
-
Tells the delegate that events were received for the current user.
Declaration
Objective-C
- (void)didReceiveEvents:(NSArray<RadarEvent *> *_Nonnull)events user:(RadarUser *_Nonnull)user;
Swift
func didReceiveEvents(_ events: [RadarEvent], user: RadarUser)
Parameters
events
The events received.
user
The current user.
-
Tells the delegate that the current user’s location was updated.
Declaration
Objective-C
- (void)didUpdateLocation:(CLLocation *_Nonnull)location user:(RadarUser *_Nonnull)user;
Swift
optional func didUpdateLocation(_ location: CLLocation, user: RadarUser)
Parameters
location
The location.
user
The current user.
-
Tells the delegate that a request failed.
Declaration
Objective-C
- (void)didFailWithStatus:(RadarStatus)status;
Swift
optional func didFail(status: RadarStatus)
Parameters
status
The status.
-
Tells the delegate that client’s location was updated, but not necessarily persisted to the server. To receive server-persisted location updates and user state, use
didUpdateLocation:user:
instead.Declaration
Objective-C
- (void)didUpdateClientLocation:(CLLocation *_Nonnull)location stopped:(BOOL)stopped;
Swift
optional func didUpdateClientLocation(_ location: CLLocation, stopped: Bool)
Parameters
location
The location.
stopped
A boolean indicating whether the client is stopped.