public class CurrentPlaybackState extends Object
PlaybackFailedRequest, which may
involve a different AudioItem than the one that generated the failure.| Modifier and Type | Class and Description |
|---|---|
static class |
CurrentPlaybackState.Builder
Builder used to construct a new
CurrentPlaybackState. |
| Modifier and Type | Method and Description |
|---|---|
static CurrentPlaybackState.Builder |
builder()
Returns a new builder instance used to construct a new
CurrentPlaybackState. |
Long |
getOffsetInMilliseconds()
Returns the offset in milliseconds of the
AudioItem from the start of its stream, or
null if there is either no item or the item belongs to a different skill. |
PlayerActivity |
getPlayerActivity()
Returns the player activity
|
String |
getToken()
Returns the token that was passed down with the
Play directive for the current
AudioItem, or null if there is either no item or if the item belongs to a different
skill. |
public static CurrentPlaybackState.Builder builder()
CurrentPlaybackState.public Long getOffsetInMilliseconds()
AudioItem from the start of its stream, or
null if there is either no item or the item belongs to a different skill.public PlayerActivity getPlayerActivity()
public String getToken()
Play directive for the current
AudioItem, or null if there is either no item or if the item belongs to a different
skill. The token is an arbitrary value set by the skill that can be used for identification.Copyright © 2016. All rights reserved.