Alexa Auto SDK  2.0.0
Classes | Public Member Functions | List of all members
com.amazon.aace.alexa.PlaybackController Class Referenceabstract

Classes

enum  PlaybackButton
 
enum  PlaybackToggle
 

Public Member Functions

final void buttonPressed (PlaybackButton button)
 
final void togglePressed (PlaybackToggle toggle, boolean action)
 

Detailed Description

PlaybackController should be extended to handle playback control operations such as on-platform button presses for the AudioPlayer. The Engine will respond to PlaybackController events with playback control directives on the AudioPlayer MediaPlayer.

Note
The TemplateRuntime.renderPlayerInfo() payload includes information about what playback control buttons should be enabled on screen with a player info display card.
See also
AudioPlayer

Member Function Documentation

◆ buttonPressed()

final void com.amazon.aace.alexa.PlaybackController.buttonPressed ( PlaybackButton  button)

Notifies the Engine of a platform button request (i.e. Play/Pause/Next/Previous/Skip Forward/Skip Backward). For certain playback types, the Engine will issue playback directives to the AudioPlayer MediaPlayer to control playback on the platform.

Parameters
buttonThe playback button type

◆ togglePressed()

final void com.amazon.aace.alexa.PlaybackController.togglePressed ( PlaybackToggle  toggle,
boolean  action 
)

Notifies the Engine of a platform toggle request (i.e. Shuffle/Loop/Repeat/Thumbs Up/Thumbs Down). For certain playback types, the Engine will issue playback directives to the AudioPlayer MediaPlayer to control playback on the platform.

Parameters
toggleThe playback toggle type
actionThe playback toggle action

Alexa Auto SDK 2.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0