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


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

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.