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

WebcomApplication

class WebcomApplication

Represents a Webcom application.

It is the base object from which you can get a Webcom service (using the XXXService properties such as authenticationService or datasyncService).

The preferred way to create a WebcomApplication instance is to use one of the withAsset or withConfiguration static methods.

Constructors

<init>

WebcomApplication(properties: Properties)

Builds a WebcomApplication instance reading settings from Java properties.

WebcomApplication(assetFileName: String = defaultAssetFileName)

Builds a WebcomApplication instance reading settings from an Android assetFileName.

WebcomApplication(configuration: WebcomConfiguration)

Low-level constructor for the WebcomApplication class.

Companion Object Properties

default

val default: WebcomApplication

Gets the default WebcomApplication instance, i.e. the one built from the "webcom.properties" asset file.

Companion Object Functions

withAsset

fun withAsset(assetFileName: String = defaultAssetFileName, done: WebcomResultCallback<WebcomApplication>): Unit

Ensures the Webcom SDK is properly initialized and passes a WebcomApplication instance built from an Android assetFileName to the done code block.

withConfiguration

fun withConfiguration(configuration: WebcomConfiguration, done: (WebcomApplication) -> Unit): Unit

Ensures the Webcom SDK is properly initialized and passes a WebcomApplication instance built from a Webcom configuration to the done code block.

withProperties

fun withProperties(properties: Properties, done: WebcomResultCallback<WebcomApplication>): Unit

Ensures the Webcom SDK is properly initialized and passes a WebcomApplication instance built from Java properties to the done code block.

Extension Properties

authenticationService

val WebcomApplication.authenticationService: AuthenticationService

Retrieves (or creates) the unique instance of AuthenticationService associated with this WebcomApplication.

datasyncService

val WebcomApplication.datasyncService: DatasyncService

Retrieves (or creates) the unique instance of DatasyncService associated with this WebcomApplication.