SubscriptionOptions

data class SubscriptionOptions @JvmOverloads constructor(val includesAcknowledgements: Boolean = false, val completionPolicy: CancelationPolicy? = null)

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

Constructors

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

Properties

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.

Link copied to clipboard
val includesAcknowledgements: Boolean = false

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