android-components / mozilla.components.service.fxa / FxaDeviceConstellation / ensureCapabilitiesAsync

ensureCapabilitiesAsync

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

Overrides DeviceConstellation.ensureCapabilitiesAsync

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.