public static class

Config.ConfigBuilder

extends Object
java.lang.Object
   ↳ com.smaato.sdk.core.Config.ConfigBuilder

Class Overview

A Builder to create instances of Config class.

Summary

Public Constructors
ConfigBuilder()
Public Methods
Config build()
Config.ConfigBuilder enableLogging(boolean enableLogging)
Config.ConfigBuilder setAdContentRating(AdContentRating adContentRating)

Sets the adContentRating and returns a reference to this Builder.

Config.ConfigBuilder setHttpsOnly(boolean httpsOnly)

Sets the httpsOnly flag and returns a reference to this Builder.

Config.ConfigBuilder setLogLevel(LogLevel logLevel)

Sets the logLevel and returns a reference to this Builder.

[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConfigBuilder ()

Public Methods

public Config build ()

Returns

public Config.ConfigBuilder enableLogging (boolean enableLogging)

public Config.ConfigBuilder setAdContentRating (AdContentRating adContentRating)

Sets the adContentRating and returns a reference to this Builder.

Default value is AdContentRating#MAX_AD_CONTENT_RATING_UNDEFINED.

Parameters
adContentRating the adContentRating to set
Returns
  • a reference to this Builder

public Config.ConfigBuilder setHttpsOnly (boolean httpsOnly)

Sets the httpsOnly flag and returns a reference to this Builder.

The httpsOnly flag allows to specify whether network requests must use SSL-encrypted connections only. Default value is false.

Parameters
httpsOnly the httpsOnly to set
Returns
  • a reference to this Builder

public Config.ConfigBuilder setLogLevel (LogLevel logLevel)

Sets the logLevel and returns a reference to this Builder.

Default value is INFO.

Parameters
logLevel target log level to be used for SDK. See possible values at LogLevel enum. If null is passed, then such call has no effect.
Returns
  • a reference to this Builder