public static class Configuration.Builder
Allows for simple constructing of a Configuration
object.
Constructor and Description |
---|
Builder(android.content.Context context,
java.lang.String merchantUUID)
Initialize a bulider with a given context.
|
Modifier and Type | Method and Description |
---|---|
InPlayer.Configuration |
build()
Construct this builder into a concrete
Configuration instance. |
Configuration.Builder |
withEnvironment(InPlayer.EnvironmentType environment)
Set the Enviorment type used for your application
|
Configuration.Builder |
withReferrer(java.lang.String referrer)
Set the Referrer string used for your application
|
public Builder(android.content.Context context, java.lang.String merchantUUID)
Initialize a bulider with a given context.
This context will then be passed through to the rest of the InPlayer SDK for use during initialization.
context
- org.jetbrains.dokka.NodeRenderContent@4b4b4ca6: The active Context
for your application. Cannot be null.merchantUUID
- org.jetbrains.dokka.NodeRenderContent@46d836d3: The Merchant UUID used for your InPlayer Accountpublic Configuration.Builder withEnvironment(InPlayer.EnvironmentType environment)
Set the Enviorment type used for your application
environment
- org.jetbrains.dokka.NodeRenderContent@61e4186d: The enum InPlayer.EnvironmentType
public Configuration.Builder withReferrer(java.lang.String referrer)
Set the Referrer string used for your application
referrer
- org.jetbrains.dokka.NodeRenderContent@53954204: The Referrer String used to describe the installation of the user.public InPlayer.Configuration build()
Construct this builder into a concrete Configuration
instance.
Configuration
object.