SITRealTimeDelegate
Objective-C
@protocol SITRealTimeDelegate <NSObject>
Swift
protocol SITRealTimeDelegate : NSObjectProtocol
Generic interface that provides information about the location of the users in Real Time
-
Delegate method that provides information of the user
Declaration
Objective-C
- (void)realTimeManager:(id<SITRealTimeInterface> _Nonnull)realTimeManager didUpdateUserLocations:(SITRealTimeData *_Nonnull)realTimeData;
Swift
func realTimeManager(_ realTimeManager: SITRealTimeInterface, didUpdateUserLocations realTimeData: SITRealTimeData)
Parameters
realTimeManager
manager object
realTimeData
encapsulate object with locations of the users
-
Delegate method that informs an internal error happends while requesting information
Declaration
Objective-C
- (void)realTimeManager:(id<SITRealTimeInterface> _Nonnull)realTimeManager didFailWithError:(NSError *_Nonnull)error;
Swift
func realTimeManager(_ realTimeManager: SITRealTimeInterface, didFailWithError error: Error)
Parameters
realTimeManager
manager object
error
error object