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

ensureCapabilitiesAsync

abstract fun ensureCapabilitiesAsync(capabilities: Set<DeviceCapability>): Deferred<Boolean> (source)

Ensure that all passed in capabilities are configured. This may involve backend service registration, or other work involving network/disc access.

Parameters

capabilities - A list of capabilities to configure. This is expected to be the same or longer list than what was passed into initDeviceAsync. Removing capabilities is currently not supported.

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