Package com.orange.webcom.sdkv2.datasync

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

Types

Child
Link copied to clipboard
open class Child(addition: Boolean, removal: Boolean, change: Boolean) : Type
Represents the type of events raised when something happens to some child of a watched data node.
ChildEvent
Link copied to clipboard
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
Link copied to clipboard
sealed class Constraint
Represents constraints on the values of data nodes sent by subscriptions.
DataEvent
Link copied to clipboard
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
Link copied to clipboard
class DatasyncManager
Handles a set of subscriptions to data nodes and authentication events.
DatasyncNode
Link copied to clipboard
class DatasyncNode : Subscriber
Represents a data node within the tree-like data of a Webcom application.
DatasyncService
Link copied to clipboard
class DatasyncService : WebcomAbstractService
The WebcomAbstractService that makes it possible to interact in real time with the data of a Webcom application.
DatasyncState
Link copied to clipboard
data class DatasyncState(isReachable: Boolean, connectionState: DatasyncState.ConnectionState, authenticationState: AuthenticationEvent.AuthenticationState)
Represents some state indicators about a DatasyncService instance.
DatasyncTime
Link copied to clipboard
enum DatasyncTime : Enum<DatasyncTime>
Represents a write policy into the Webcom database.
DatasyncValuable
Link copied to clipboard
class DatasyncValuable
Represents a tree-like value stored by the Webcom datasync service within its real-time database.
Event
Link copied to clipboard
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.
PresenceState
Link copied to clipboard
typealias PresenceState = ISO8601Date

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

This type should only be used to convert DatasyncValuable values using the DatasyncValuable.converted or DatasyncValuable.convertTo methods.

Subscriber
Link copied to clipboard
abstract class Subscriber
Base class for all subscription-related methods.
Subscription
Link copied to clipboard
interface Subscription
Represents a subscription to some event type on a data node.
SubscriptionCancelationPolicy
Link copied to clipboard
Represents the policy to apply to the data stored within the local cache that are watched by a subscription when canceling this subscription.
TransactionOperation
Link copied to clipboard
sealed class TransactionOperation
Represents a write operation to perform on a data node within an atomic transaction.
TransactionResult
Link copied to clipboard
data class TransactionResult(value: DatasyncValuable, hasCompleted: Boolean)
Represents the result of a transaction run by the DatasyncNode.runTransaction method.
Type
Link copied to clipboard
sealed class Type
Represents the type of event to subscribe to.
ValueChanged
Link copied to clipboard
sealed class ValueChanged : Type
Represents the type of events raised when the value of a watched data node changes.
ValueChangedWithDataEvent
Link copied to clipboard
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
Link copied to clipboard
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).