STWConfiguration

open class STWConfiguration

This is a builder class witch serve to configure various parameters necessary to use the SDK. Some parameters are required while some others are optional.

Required prams:

  1. DefaultConfigurationServerUrl (String, mandatory): the default url of the configuration server.
  2. DefaultConfigurationServiceUri
  3. DefaultSipPort
  4. FallbackSipPort
  5. DefaultHttpPort
  6. FallbackHttpPort
  7. DefaultVoIPPort
  8. FallbackVoIPPort

Constructors

Link copied to clipboard
open fun STWConfiguration(@NonNull context: Context)
Creates a STWConfiguration to set configuration callback.

Types

Link copied to clipboard
open class Builder
Link copied to clipboard
open class ConfigurationBuilder

Functions

open fun enableRestrictedNetworkCapabilityAfterPermissionGranted(    context: Context,     restrictedNetworkType: Int,     isFallbackAllowed: Boolean)
Call this method to enable restricted network at any time
Link copied to clipboard
open fun getCurrentConfigurationServerUrl(@NonNull context: Context): String
Link copied to clipboard
open fun getPrivacyPolicyFile(fileType: Int): InputStream
Link copied to clipboard
open fun isConfigurationDownloaded(@NonNull context: Context): Boolean
Call to check whether the configuration was downloaded from the server or not
Link copied to clipboard
open fun refreshConfiguration(@Nullable callback: CompletionCallback)
open fun refreshConfiguration(@Nullable callback: CompletionCallback, @Nullable lifecycle: Lifecycle)
Call this method to refresh the application configuration from zip already downloaded.