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

fromAsset

@JvmStatic fun fromAsset(name: String): WebcomConfiguration

Builds a WebcomConfiguration instance from an Android asset file named name.

Exceptions

IOException - if the asset file cannot be opened or read.

WebcomException - if the "applicationId" property is missing or the "websocketProtocol" property cannot be parsed within the asset file.