WDWBuilder Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | WDWBuilder.h |
Overview
Helper class to configure and build WDWClient instances.
Usage Example
WDWClient *sdkInstance = [[[[[WDWClientBuilder new]
withFleetID:@"UnitTest_Fleet"]
withPushConfiguration:config]
withLogLevel:WDWLogLevelError]
build];
– withFleetID:
Sets fleet ID
- (WDWBuilder *)withFleetID:(NSString *)fleetIDParameters
fleetID |
Fleet ID for your Application, provided by Bosch, required |
|---|
Declared In
WDWBuilder.h
– withPushConfiguration:
Sets the push configuration
- (WDWBuilder *)withPushConfiguration:(WDWPushConfiguration *)configParameters
config |
preconfigured WDWPushConfiguration object, required |
|---|
Declared In
WDWBuilder.h
– withMessageEvaluator:
Sets a custom message evaluator
- (WDWBuilder *)withMessageEvaluator:(id<WDWMessageEvaluation>)customEvaluatorParameters
customEvaluator |
your own class instance, which conforms to WDWMessageEvaluation protocol |
|---|
Declared In
WDWBuilder.h
– withLogLevel:
Sets desired log level
- (WDWBuilder *)withLogLevel:(WDWLogLevel)levelParameters
level |
desired log level, default is WDWLogLevelWarning |
|---|
Declared In
WDWBuilder.h
– withSupportedCountries:
Sets List of countries WDW-SDK should support for data collection, If the method is not invoked, data will be generated in each country supported by the WDW-SDK.
For convience, Here’s predefined set of WDW-SDK supported countries. ALL - List of All WDW-SDK supported countries EUROPE - List of All WDW-SDK supported european countries GERMANY - Only support for Germany
- (WDWBuilder *)withSupportedCountries:(NSArray *)supportedCountriesParameters
supportedCountries |
List of Country of your app wants support |
|---|
Return Value
returns WDW builder instance
Declared In
WDWBuilder.h