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

Package com.orange.webcom.sdkv2.datasync

Exposes the API of the Webcom Realtime Database service (or "datasync" in short).

Types

Child

open class Child : Type

Represents the type of events raised when something happens to some child of a data node.

ChildEvent

data class ChildEvent : Event

Notification of a subscribed Child event type to a callback function (previously passed to one of the DatasyncNode.subscribe methods).

Constraint

sealed class Constraint

Represents constraints on the values of data nodes sent by subscriptions.

DataEvent

sealed class DataEvent

Represents a notification received through the Firebase Cloud Messaging service from the Webcom back end in response to a Subscription previously set up using one of the DatasyncNode.subscribeThroughNotifications methods.

DatasyncManager

class DatasyncManager

Handles a set of subscriptions to data nodes and authentication events.

DatasyncNode

class DatasyncNode : Subscriber

Represents a data node within the tree-like data of a Webcom application.

DatasyncService

class DatasyncService : WebcomAbstractService

The WebcomAbstractService that makes it possible to interact in real time with the data of a Webcom application.

DatasyncState

data class DatasyncState

Represents some state indicators about a DatasyncService instance.

DatasyncTime

enum class DatasyncTime

Represents a write policy into the Webcom database.

DatasyncValuable

class DatasyncValuable

Represents a tree-like value stored by the Webcom datasync service within its real-time database.

Event

sealed class Event

Represents a notification received by a callback function (previously passed to one of the DatasyncNode.subscribe methods) from the Webcom back end in response to a Subscription.

Subscriber

abstract class Subscriber

Base class for all subscription-related methods.

Subscription

interface Subscription

Represents a subscription to some event type on a data node. Such a subscription can be made using one of the DatasyncNode.subscribe, DatasyncNode.subscribeThroughNotifications or DatasyncNode.subscribeThroughWebhook methods.

SubscriptionCancellationPolicy

enum class SubscriptionCancellationPolicy

Represents the policy to apply to the data stored within the local cache that are watched by a subscription when cancelling this subscription. This data may be either kept and still updated (as long as the network connectivity is up) after the cancellation, or cleared from the local cache.

TransactionOperation

sealed class TransactionOperation

Represents a write operation to perform on a data node within an atomic transaction.

TransactionResult

data class TransactionResult

Represents the result of a transaction run by the DatasyncNode.runTransaction method.

Type

sealed class Type

Represents the type of event to subscribe to.

ValueChanged

sealed class ValueChanged : Type

Represents the type of events raised when the value of a data node changes.

ValueChangedWithDataEvent

data class ValueChangedWithDataEvent : Event

Notification of a subscribed ValueChanged.WithData event type to a callback function (previously passed to one of the DatasyncNode.subscribe methods).

ValueChangedWithoutDataEvent

data class ValueChangedWithoutDataEvent : Event

Notification of a subscribed ValueChanged.WithoutData event type to a callback function (previously passed to one of the DatasyncNode.subscribe methods).

Type Aliases

PresenceState

typealias PresenceState = ISO8601Date

Type used to publish the user's presence, which the DatasyncService.startPublishingMyPresence and DatasyncService.isPresent methods rely on.