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

– withMessageEvaluator:

Sets a custom message evaluator

- (WDWBuilder *)withMessageEvaluator:(id<WDWMessageEvaluation>)customEvaluator

Parameters

customEvaluator

your own class instance, which conforms to WDWMessageEvaluation protocol

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

– build

Creates WDWClient instance based on collected configuration

- (WDWClient *)build

Declared In

WDWBuilder.h