WDWBuilder
Objective-C
@interface WDWBuilder : NSObject
Swift
class WDWBuilder : NSObject
Helper class to configure and build WDWClient instances.
Usage Example
WDWClient *sdkInstance = [[[[[WDWClientBuilder new]
withFleetID:@"UnitTest_Fleet"]
withPushConfiguration:config]
withLogLevel:WDWLogLevelError]
build];
-
Sets fleet ID
Declaration
Objective-C
- (WDWBuilder *)withFleetID:(NSString *)fleetID;Swift
func withFleetID(_ fleetID: String!) -> WDWBuilder!Parameters
fleetIDFleet ID for your Application, provided by Bosch, required
-
Sets the push configuration
Declaration
Objective-C
- (WDWBuilder *)withPushConfiguration:(WDWPushConfiguration *)config;Swift
func withPushConfiguration(_ config: WDWPushConfiguration!) -> WDWBuilder!Parameters
configpreconfigured
WDWPushConfigurationobject, required -
Sets desired log level
Declaration
Objective-C
- (WDWBuilder *)withLogLevel:(WDWLogLevel)level;Swift
func withLogLevel(_ level: WDWLogLevel) -> WDWBuilder!Parameters
leveldesired log level, default is
WDWLogLevelWarning -
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
- USA - Only support for USA
- NORTH_AMERICA - List of North American countries supported by the WDW-SDK
GERMANY - Only support for Germany
Declaration
Objective-C
- (WDWBuilder *)withSupportedCountries:(NSArray *)supportedCountries;Swift
func withSupportedCountries(_ supportedCountries: [Any]!) -> WDWBuilder!Parameters
supportedCountriesList of countries your app wants to support
Return Value
returns WDW builder instance
-
Retrieves the list of all supported countries
Declaration
Objective-C
+ (NSArray *)All;Swift
class func all() -> [Any]!Return Value
retrieves the list of all supported countries
-
Retrieves the list of all supported countries in Europe
Declaration
Objective-C
+ (NSArray *)Europe;Swift
class func europe() -> [Any]!Return Value
retrieves the list of all supported countries in Europe
-
Retrieves the country code for USA
Declaration
Objective-C
+ (NSArray *)Usa;Swift
class func usa() -> [Any]!Return Value
retrieves the country code for USA
-
Retrieves the list of all supported countries in North America
Declaration
Objective-C
+ (NSArray *)NorthAmerica;Swift
class func northAmerica() -> [Any]!Return Value
retrieves the list of all supported countries in North America
-
Retrieves the country code for Germany
Declaration
Objective-C
+ (NSArray *)Germany;Swift
class func germany() -> [Any]!Return Value
retrieves the country code for Germany