WDWClientDelegate
Objective-C
@protocol WDWClientDelegate <NSObject>
Swift
protocol WDWClientDelegate : NSObjectProtocol
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 intervals:
Other delegate methods are executed in the following order:
-
At this point your App might want to establish a connection to the server. Called prior to the
-wdwClient:didReceiveNewData:callback -
At this point your App might want to disconnect from the server. The
-wdwClient:didReceiveNewData:will no longer be called. -
The json data string is ready to be sent to the server. Do not modify the data. This method is called repeatedly after the -wdwClient:didEnterMonitoredArea: callback has been triggered.
-
Called when an incoming push message is recognized as a relevant driving warning for the current user
Declaration
Objective-C
- (void)wdwClient:(WDWClient *)client didReceiveDrivingWarning:(WDWWarning *)warning;Swift
func wdwClient(_ client: WDWClient!, didReceiveDriving warning: WDWWarning!)