Builder

open class Builder

Constructors

Link copied to clipboard
open fun Builder(@NonNull context: Context)
Creates a Builder to put SDK Configuration parameters.

Functions

Link copied to clipboard
open fun build()
Check, build and save the SDk configuration.
Link copied to clipboard
open fun enableAlwaysConnectedMode(enable: Boolean): STWConfiguration.Builder
Sets whether the Always Connected Mode is enabled.
Link copied to clipboard
open fun enableCBSNetworkCapability(enabled: Boolean): STWConfiguration.Builder
Sets whether the app must use CBS network capability.
Link copied to clipboard
open fun enableFallback(enable: Boolean): STWConfiguration.Builder
Sets whether the fallback port is enabled for SIP and HTTP.
Link copied to clipboard
open fun enableLoadConversation(enabled: Boolean): STWConfiguration.Builder
Sets whether the load of the conversation history is enabled by default or not.
Link copied to clipboard
open fun enableProximitySensor(value: Boolean): STWConfiguration.Builder
Sets whether the app must Enable / Disable the Proximity sensor
Link copied to clipboard
open fun enableRestrictedNetworkCapability(restrictedNetworkType: Int, isFallbackAllowed: Boolean): STWConfiguration.Builder
Sets whether the app must use CBS or MCX network capability.
Link copied to clipboard
open fun enableSecureStorageChecker(enabled: Boolean): STWConfiguration.Builder
Sets whether the secure storage checker is enabled.
Link copied to clipboard
open fun enableTlsForArcGIS(enabled: Boolean): STWConfiguration.Builder
Sets whether the TLS is enabled for ArcGIS services.
Link copied to clipboard
open fun enableTlsForConfigurationService(enable: Boolean): STWConfiguration.Builder
Sets whether the TLS is enabled or not for the configuration service.
Link copied to clipboard
open fun enableTlsForOSM(enabled: Boolean): STWConfiguration.Builder
Sets whether the TLS is enabled for OSM services.
Link copied to clipboard
open fun enableTlsForSip(enable: Boolean): STWConfiguration.Builder
Sets whether the TLS is enabled or not for sip connections.
Link copied to clipboard
@Deprecated(since = "SDK 3.6.4")
open fun enableUserPasswordEncryption(encrypt: Boolean): STWConfiguration.Builder
Sets whether the user password will be encrypted or not.
Link copied to clipboard
open fun enableVulnerabilityChecker(enabled: Boolean): STWConfiguration.Builder
Sets whether the Vulnerability checker is enabled.
Link copied to clipboard
open fun setAudioSource(audioSource: Int): STWConfiguration.Builder
Sets whether the app must use MediaRecorder.AudioSource.VOICE_COMMUNICATION as default audio source for full duplex call od must use the MediaRecorder.AudioSource.MIC.
Link copied to clipboard
Set the default URL of configuration server.
Link copied to clipboard
open fun setDefaultHttpPort(httpPort: Int): STWConfiguration.Builder
Set the default port for http requests
Link copied to clipboard
open fun setDefaultSipPort(sipPort: Int): STWConfiguration.Builder
Set the default port for SIP connections
Link copied to clipboard
@Deprecated(since = "SDK 3.9.1")
open fun setDefaultVoIPPort(voIPPort: Int): STWConfiguration.Builder
Set the default port for VoIP sessions
Link copied to clipboard
open fun setFallbackHttpPort(fallbackHttpPort: Int): STWConfiguration.Builder
Set the fallback port for http requests
Link copied to clipboard
open fun setFallbackSipPort(fallbackSipPort: Int): STWConfiguration.Builder
Set the fallback port for SIP connections
Link copied to clipboard
@Deprecated(since = "SDK 3.9.1")
open fun setFallbackVoIPPort(fallbackVoIPPort: Int): STWConfiguration.Builder
Set the fallback port for VoIP sessions
Link copied to clipboard
open fun setHostNameUrl(@NonNull url: String): STWConfiguration.Builder
Set the URL of the hostName.
Link copied to clipboard
@Deprecated(since = "SDK 3.6.4")
open fun setKeystoreAlias(@NonNull alias: String): STWConfiguration.Builder
Set the keystore alia for the encrypting operations.
Link copied to clipboard
open fun setTrustStore(@NonNull trustStore: ITrustStore): STWConfiguration.Builder
Set up or update trustStore