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 *)fleetID

Parameters

fleetID

Fleet ID for your Application, provided by Bosch, required

Declared In

WDWBuilder.h

– withPushConfiguration:

Sets the push configuration

- (WDWBuilder *)withPushConfiguration:(WDWPushConfiguration *)config

Parameters

config

preconfigured WDWPushConfiguration object, required

Declared In

WDWBuilder.h

– withLogLevel:

Sets desired log level

- (WDWBuilder *)withLogLevel:(WDWLogLevel)level

Parameters

level

desired log level, default is WDWLogLevelWarning

Declared In

WDWBuilder.h

– withSupportedCountries:

Sets the countries in which the WDW service shall be active. If the method is not invoked, data will be generated in each country supported by the WDW-SDK.

For convenience, the WDW-SDK provides a set of predefined lists of countries. ALL - List of all countries supported by the WDW-SDK EUROPE - List of European countries supported by the WDW-SDK GERMANY - Only support for Germany

- (WDWBuilder *)withSupportedCountries:(NSArray *)supportedCountries

Parameters

supportedCountries

List of countries your app wants to support

Return Value

returns WDW builder instance

Declared In

WDWBuilder.h

– build

Creates WDWClient instance based on collected configuration

- (WDWClient *)build

Declared In

WDWBuilder.h

+ All

retrieves the list of all supported countries

+ (NSArray *)All

Return Value

retrieves the list of all supported countries

Declared In

WDWBuilder.h

+ Europe

retrieves the list of all supported countries in Europe

+ (NSArray *)Europe

Return Value

retrieves the list of all supported countries in Europe

Declared In

WDWBuilder.h

+ Germany

retrieves the country code for Germany

+ (NSArray *)Germany

Return Value

retrieves the country code for Germany

Declared In

WDWBuilder.h