android-components / mozilla.components.concept.sync / DeviceConstellation / setDevicePushSubscriptionAsync

setDevicePushSubscriptionAsync

abstract fun setDevicePushSubscriptionAsync(subscription: DevicePushSubscription): Deferred<Boolean> (source)

Set a DevicePushSubscription for the current device.

Parameters

subscription - A new DevicePushSubscription.

Return A Deferred that will be resolved with a success flag once operation is complete.