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

setDeviceNameAsync

abstract fun setDeviceNameAsync(name: String, context: <ERROR CLASS>): Deferred<Boolean> (source)

Set name of the current device.

Parameters

name - New device name.

context - An application context, used for updating internal caches.

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