Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2 / WebcomConfiguration

WebcomConfiguration

data class WebcomConfiguration

Represents the settings of a WebcomApplication instance.

WebcomConfiguration instances are generally built using the fromProperties and fromAsset methods.

Types

WebsocketProtocol

enum class WebsocketProtocol

Available versions of the websocket protocol between the Webcom SDK client and the Webcom back end.

Constructors

<init>

WebcomConfiguration(identifier: String, platform: URL? = null, offlineCache: String? = null, websocketProtocol: WebcomConfiguration.WebsocketProtocol = defaultWebsocketProtocol)

Builds a WebcomConfiguration instance with specific settings.

Properties

identifier

val identifier: String

The identifier of the Webcom application. Mandatory

offlineCache

val offlineCache: String?

The offline data to restore into the local cache when starting the Webcom application. The specified data must have been previously retrieved using DatasyncService.offlineCache.

platform

val platform: URL?

The URL of the Webcom back end to use. Optional: if not set, the production back end is used by default.

websocketProtocol

val websocketProtocol: WebcomConfiguration.WebsocketProtocol

The version of the websocket protocol to use to communicate with the Webcom back end. Advanced usage: prefer using the default value.

Companion Object Functions

fromAsset

fun fromAsset(fileName: String): WebcomConfiguration

Builds a WebcomConfiguration instance from an Android asset fileName.

fromProperties

fun fromProperties(properties: Properties): WebcomConfiguration

Builds a WebcomConfiguration instance from Java properties.