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:
- DefaultConfigurationServerUrl (String, mandatory): the default url of the configuration server.
- DefaultConfigurationServiceUri
- DefaultSipPort
- FallbackSipPort
- DefaultHttpPort
- FallbackHttpPort
- DefaultVoIPPort
- FallbackVoIPPort
Constructors
Types
Functions
Link copied to clipboard
open fun enableRestrictedNetworkCapabilityAfterPermissionGranted( context: Context, restrictedNetworkType: Int, isFallbackAllowed: Boolean)
Content copied to clipboard
Call this method to enable restricted network at any time
Link copied to clipboard
open fun getCurrentConfigurationServerUrl(@NonNull context: Context): String
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Call to check whether the configuration was downloaded from the server or not
Link copied to clipboard
open fun refreshConfiguration(@Nullable callback: CompletionCallback, @Nullable lifecycle: Lifecycle)
Content copied to clipboard
Call this method to refresh the application configuration from zip already downloaded.