SubscriptionOptions

data class SubscriptionOptions @JvmOverloads constructor(includesAcknowledgements: Boolean, completionPolicy: CancelationPolicy?)

Represents some options to customize the behavior of a subscription that receives notifications through a callback function.

Constructors

SubscriptionOptions
Link copied to clipboard
fun SubscriptionOptions(includesAcknowledgements: Boolean = false, completionPolicy: CancelationPolicy? = null)

Properties

completionPolicy
Link copied to clipboard
val completionPolicy: CancelationPolicy? = null

Specifies the behavior of the subscription on the data stored in the local cache when it is canceled or revoked. It may either clear or keep the watched data. If null, it aligns on the DatasyncManager.policy property of the DatasyncManager that fires the subscription.

includesAcknowledgements
Link copied to clipboard
val includesAcknowledgements: Boolean = false

Indicates whether acknowledgements from the back end must be notified (together with regular data events).