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


fun initDeviceAsync(name: String, type: DeviceType, capabilities: Set<DeviceCapability>): Deferred<Boolean> (source)

Overrides DeviceConstellation.initDeviceAsync

Register current device in the associated DeviceConstellation.


name - An initial name for the current device. This may be changed via setDeviceNameAsync.

type - Type of the current device. This can’t be changed.

capabilities - A list of capabilities that the current device claims to have.

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