public static final class TealiumCollect.Config
extends java.lang.Object
Constructor and Description |
---|
TealiumCollect.Config(Context context,
java.lang.String accountName,
java.lang.String profileName,
java.lang.String environmentName) |
Modifier and Type | Method and Description |
---|---|
TealiumCollect.Config |
setHttpsEnabled(boolean isHttpsEnabled)
Determine whether networking scheme is HTTP or HTTPS.
|
TealiumCollect.Config |
setLogLevel(int logLevel)
Set the volume of which this library prints logs in LogCat.
|
TealiumCollect.Config |
setOverrideProfile(java.lang.String profileName)
Use the provided profile instead of "main" for data layer enrichment.
|
java.lang.String |
toString() |
public TealiumCollect.Config(Context context, java.lang.String accountName, java.lang.String profileName, java.lang.String environmentName)
context
- the current context referenceaccountName
- the account name provided by TealiumprofileName
- the profile for this projectenvironmentName
- the development environment for this configuration, conventionally: "dev", "qa", or "prod".java.lang.IllegalArgumentException
- when any of the parameters are null or any of the strings are empty.public TealiumCollect.Config setHttpsEnabled(boolean isHttpsEnabled)
isHttpsEnabled
- use HTTPS when true, HTTP otherwise.public TealiumCollect.Config setLogLevel(int logLevel)
Log#VERBOSE
Log#DEBUG
Log#INFO
Log#WARN
Log#ERROR
Log#ASSERT
Log#WARN
.logLevel
- the desired log-level (2-7) for varying verbosity, any other value for SILENT.public TealiumCollect.Config setOverrideProfile(java.lang.String profileName)
profileName
- the desired override, if empty defaults to "main"public java.lang.String toString()
toString
in class java.lang.Object