registerDevice
abstract suspend fun registerDevice(deviceSerialNumber: String, countryId: CountryId): PreviewModeResult
Requests the OEM's backend to register this device for Alexa Preview Mode using the AVS InstantDeviceRegistration
API.
Return
PreviewModeResult.Success containing a new PreviewModeToken if the registration of this device was successful or PreviewModeResult.Failure if the process failed.
Parameters
deviceSerialNumber
Unique serial number of this device. The client's backend should be able to recognize each device using this info.
countryId
The country where this device operates.