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

Subscriber

abstract class Subscriber

Base class for all subscription-related methods.

Constructors

<init>

Subscriber()

Base class for all subscription-related methods.

Functions

subscribe

fun subscribe(type: Child, constraint: Constraint = Constraint.None, callback: WebcomResultCallback<ChildEvent>): Subscription

Subscribes to a Child event with a given constraint on this data node and sends notifications to a callback function.

fun subscribe(type: ValueChanged.WithData, constraint: Constraint = Constraint.None, callback: WebcomResultCallback<ValueChangedWithDataEvent>): Subscription

Subscribes to a ValueChanged.WithData event with a given constraint on this data node and sends notifications to a callback function.

fun subscribe(type: ValueChanged.WithoutData, constraint: Constraint = Constraint.None, callback: WebcomResultCallback<ValueChangedWithoutDataEvent>): Subscription

Subscribes to a ValueChanged.WithoutData event with a given constraint on this data node and sends notifications to a callback function.

subscribeThroughNotifications

fun subscribeThroughNotifications(type: Type, expirationDate: Date? = null, cipher: CryptoMethod = CryptoMethod.None, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>): Unit

Subscribes to a type of event on this data node until a given expirationDate and push notifications to the mobile device.

fun subscribeThroughNotifications(type: Type, duration: Duration, cipher: CryptoMethod = CryptoMethod.None, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>): Unit

Subscribes to a type of event on this data node for a given duration and push notifications to the mobile device.

subscribeThroughWebhook

fun subscribeThroughWebhook(type: Type, identifier: String, context: String, expirationDate: Date? = null, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>): Unit

Subscribes to a type of event on this data node until a given expirationDate and send notifications to a webhook.

fun subscribeThroughWebhook(type: Type, identifier: String, context: String, duration: Duration, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>): Unit

Subscribes to a type of event on this data node for a given duration and send notifications to a webhook.

Inheritors

DatasyncNode

class DatasyncNode : Subscriber

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