public interface ConfigBuilder
Config
instance.
The required configuration parameters are:
Modifier and Type | Method and Description |
---|---|
ConfigBuilder |
appHash(java.lang.String appHash)
Sets the appHash.
|
ConfigBuilder |
applicationKey(java.lang.String applicationKey)
Sets the application key.
|
Config |
build()
Instantiates a Config object with the currently assigned configuration parameters.
|
ConfigBuilder |
context(android.content.Context context)
Sets the application context.
|
ConfigBuilder |
environmentHost(java.lang.String environmentHost)
Sets the Sinch environment host.
|
ConfigBuilder |
flashCallEnvironmentHost(java.lang.String environmentHost)
Sets the Sinch environment host for flash call verification.
|
ConfigBuilder |
smsEnvironmentHost(java.lang.String environmentHost)
Sets the Sinch environment host for sms verification.
|
ConfigBuilder context(android.content.Context context)
context
- Must not be null.java.lang.IllegalArgumentException
- if context is null.ConfigBuilder applicationKey(java.lang.String applicationKey)
applicationKey
- Must not be null.java.lang.IllegalArgumentException
- if applicationKey is null or empty.ConfigBuilder appHash(java.lang.String appHash)
appHash
- Must not be null.ConfigBuilder environmentHost(java.lang.String environmentHost)
environmentHost
- Host for base URL for the Sinch API environment to be used,
e.g. "sandbox.sinch.com". Must not be null.java.lang.IllegalArgumentException
- if environmentHost is null or empty.ConfigBuilder flashCallEnvironmentHost(java.lang.String environmentHost)
environmentHost
- Host for base URL for the Sinch API environment to be used,
e.g. "sandbox.sinch.com". Must not be null.java.lang.IllegalArgumentException
- if environmentHost is null or empty.ConfigBuilder smsEnvironmentHost(java.lang.String environmentHost)
environmentHost
- Host for base URL for the Sinch API environment to be used,
e.g. "sandbox.sinch.com". Must not be null.java.lang.IllegalArgumentException
- if environmentHost is null or empty.Config build()