WebcomApplication

class WebcomApplication(configuration: WebcomConfiguration)

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

WebcomApplication
Link copied to clipboard
fun WebcomApplication(properties: Properties)
Builds a WebcomApplication instance reading settings from Java properties.
WebcomApplication
Link copied to clipboard
fun WebcomApplication(assetFileName: String = defaultAssetFileName)
Builds a WebcomApplication instance reading settings from an Android assetFileName.
WebcomApplication
Link copied to clipboard
fun WebcomApplication(configuration: WebcomConfiguration)
Low-level constructor for the WebcomApplication class.

Types

Companion
Link copied to clipboard
object Companion
Provides with a set of methods and properties to easily build WebcomApplication instances.

Functions

service
Link copied to clipboard
fun <T : WebcomAbstractService> service(type: KClass<T>): T
Retrieves (or creates) the unique Webcom service of a given type associated with this WebcomApplication instance.

Properties

authenticationService
Link copied to clipboard
val authenticationService: AuthenticationService
Convenient shortcut to service(AuthenticationService::class to retrieve the unique instance of AuthenticationService associated with this WebcomApplication.
datasyncService
Link copied to clipboard
val datasyncService: DatasyncService
Convenient shortcut to service(DatasyncService::class to retrieve the unique instance of DatasyncService associated with this WebcomApplication.