WDWClientDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | WDWClient.h |
Overview
Delegate protocol to interact with the WDW-SDK. Delegate methods are only called when WDW-SDK monitoring is started.
After the [WDWClient startMonitoring] is called, the following delegate methods are called at arbitrary time:
Other delegate methods are executed in the following order:
– wdwClient:didEnterMonitoredArea:
At this point your App might want to establish a connection to the server. Called prior to the wdwClient:didReceiveNewData: callback
- (void)wdwClient:(WDWClient *)client didEnterMonitoredArea:(NSString *)areaIdDeclared In
WDWClient.h
– wdwClient:didLeftMonitoredArea:
At this point your App might want to disconnect from the server. The wdwClient:didReceiveNewData: will no longer be called.
- (void)wdwClient:(WDWClient *)client didLeftMonitoredArea:(NSString *)areaIdDeclared In
WDWClient.h
– wdwClient:didReceiveDrivingWarning:
Called when an incoming push message is recognized as a relevant driving warning for the current user
- (void)wdwClient:(WDWClient *)client didReceiveDrivingWarning:(WDWWarning *)warningDeclared In
WDWClient.h
– wdwClient:didChangeAvailability:
required method
Used for indicating the WDW-SDK availability to the user.
- (void)wdwClient:(WDWClient *)client didChangeAvailability:(WDWClientAvailability)availabilityDeclared In
WDWClient.h
– wdwClient:didReceiveError:
required method
Used for handling errors. See SDK Error handling topic.
- (void)wdwClient:(WDWClient *)client didReceiveError:(NSError *)errorDeclared In
WDWClient.h
– wdwClient:didReceiveNewData:
required method
The json data string is ready to be sent to the server. Do not modify the data. This method called repeatedly after the wdwClient:didEnterMonitoredArea: callback has been triggered.
- (void)wdwClient:(WDWClient *)client didReceiveNewData:(NSString *)jsonDeclared In
WDWClient.h