abstract class Subscriber
Base class for all subscription-related methods.
Subscriber()
Base class for all subscription-related methods. |
fun subscribe(type: Child, constraint: Constraint = Constraint.None, callback: (ChildEvent) -> Unit): Subscription
Subscribes to a Child event with a given constraint on this data node and send notifications to a callback function. fun subscribe(type: ValueChanged.WithData, constraint: Constraint = Constraint.None, callback: (ValueChangedWithDataEvent) -> Unit): Subscription
Subscribes to a ValueChanged.WithData event with a given constraint on this data node and send notifications to a callback function. fun subscribe(type: ValueChanged.WithoutData, constraint: Constraint = Constraint.None, callback: (ValueChangedWithoutDataEvent) -> Unit): Subscription
Subscribes to a ValueChanged.WithoutData event with a given constraint on this data node and send notifications to a callback function. |
|
fun subscribeToNotifications(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 subscribeToNotifications(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. |
|
fun subscribeToWebhook(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 subscribeToWebhook(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. |
class DatasyncNode : Subscriber
Represents a data node within the tree-like data of a Webcom application. |