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:

  1. wdwClient:didEnterMonitoredArea:
  2. wdwClient:didReceiveNewData: (multiple times)
  3. wdwClient:didLeftMonitoredArea:

– 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 *)areaId

Declared 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 *)areaId

Declared In

WDWClient.h

– wdwClient:didReceiveError: required method

Used for handling errors. See SDK Error handling topic.

- (void)wdwClient:(WDWClient *)client didReceiveError:(NSError *)error

Declared 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 *)json

Declared In

WDWClient.h

– wdwClient:didReceiveDrivingWarning: required method

Called when an incoming push message is recognized as a relevant driving warning for the current user

- (void)wdwClient:(WDWClient *)client didReceiveDrivingWarning:(WDWWarning *)warning

Declared In

WDWClient.h