PreviewModeToken

data class PreviewModeToken(val accessToken: String, val expirationTime: Instant) : Parcelable

Represents a registration token for Alexa Preview Mode (Alexa Instant Device Registration).

Constructors

Link copied to clipboard
fun PreviewModeToken(accessToken: String, expirationTime: Instant)

Properties

Link copied to clipboard
val accessToken: String

The token that is received from AVS (Alexa Voice Service) upon successful registration for Preview Mode.

Link copied to clipboard
val expirationTime: Instant

The Instant when this token will expire. After expirationTime, accessToken is not valid anymore and needs to be refreshed.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)