Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / DatasyncService / startPublishingMyPresence

startPublishingMyPresence

fun startPublishingMyPresence(path: String): Unit

Starts maintaining a value at a given path that indicates in real time whether the user of the underlying WebcomApplication is connected and authenticated.

This indication is intended to be read by other devices to detect the user presence. A user is considered as present by this method as soon as s·he is both authenticated and connected. In this case, the expiration date of her·his authentication token is written at path, otherwise data at path is automatically cleared.

In order to interpret this indication from other devices, one must use the isPresent method.