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 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 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