Subscriber
abstract class Subscriber
Content copied to clipboard
Base class for all subscription-related methods.
Constructors
Subscriber
Link copied to clipboard
fun Subscriber()
Content copied to clipboard
Functions
subscribe
Link copied to clipboard
fun subscribe(type: Child, constraint: Constraint = Constraint.None, includesAcknowledgements: Boolean = false, callback: WebcomResultCallback<ChildEvent>): Subscription
Content copied to clipboard
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, includesAcknowledgements: Boolean = false, callback: WebcomResultCallback<ValueChangedWithDataEvent>): Subscription
Content copied to clipboard
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, includesAcknowledgements: Boolean = false, callback: WebcomResultCallback<ValueChangedWithoutDataEvent>): Subscription
Content copied to clipboard
Subscribes to a ValueChanged.WithoutData event with a given constraint on this data node and sends notifications to a callback function.
subscribeThroughNotifications
Link copied to clipboard
fun subscribeThroughNotifications(type: Type, duration: Duration, cipher: CryptoMethod = CryptoMethod.None, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>)
Content copied to clipboard
fun subscribeThroughNotifications(type: Type, expirationDate: Date? = null, cipher: CryptoMethod = CryptoMethod.None, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>)
Content copied to clipboard
Subscribes to a type of event on this data node until a given expirationDate and push notifications to the mobile device.
subscribeThroughWebhook
Link copied to clipboard
fun subscribeThroughWebhook(type: Type, identifier: String, context: String, duration: Duration, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>)
Content copied to clipboard
fun subscribeThroughWebhook(type: Type, identifier: String, context: String, expirationDate: Date? = null, includesRevocation: Boolean = true, callback: WebcomResultCallback<Subscription>)
Content copied to clipboard
Subscribes to a type of event on this data node until a given expirationDate and send notifications to a webhook.
Inheritors
DatasyncNode
Link copied to clipboard