Datasync Service
The WebcomAbstractService that makes it possible to interact in real time with the data of a Webcom application.
This service mainly provides ways to get/set/update the data and to subscribe to them in order to be notified in real time when they change. Instances of DatasyncService must be built using the WebcomApplication.datasyncService property.
Functions
cleanOfflineCache
Link copied to clipboard
fun cleanOfflineCache()
Content copied to clipboard
createManager
Link copied to clipboard
fun createManager(policy: SubscriptionCancelationPolicy = SubscriptionCancelationPolicy.KeepUpdatingWhenImplicit): DatasyncManager
Content copied to clipboard
isPresent
Link copied to clipboard
Indicates whether a value previously set by the startPublishingMyPresence method means that a user is present.
offlineCache
Link copied to clipboard
startPublishingMyPresence
Link copied to clipboard
Starts maintaining a value at a given path that indicates in real time whether the user of the underlying WebcomApplication is connected and authenticated.
stopPublishingMyPresence
Link copied to clipboard
fun stopPublishingMyPresence()
Content copied to clipboard
Stops maintaining the indicator of the user presence, previously started by the startPublishingMyPresence method.
Properties
isConnectionEnabled
Link copied to clipboard
Indicates whether the DatasyncService tries to establish connection to the Webcom back end.
state
Link copied to clipboard
Synchronously returns the current state of this DatasyncService.