AudioPlayerAgentInterface
Interface for AudioPlayer Capability Agent
Types
Link copied to clipboard
Link copied to clipboard
Listener to be called when occur a playback event.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
abstract fun addListener(listener: AudioPlayerAgentInterface.Listener, requestCurrentState: Boolean = false)
Content copied to clipboard
Add a listener to be called when a state changed.
Link copied to clipboard
abstract fun addOnDurationListener(listener: AudioPlayerAgentInterface.OnDurationListener, requestCurrentState: Boolean = false)
Content copied to clipboard
Add a listener to be called when duration retrieved
Link copied to clipboard
abstract fun addOnPlaybackListener(listener: AudioPlayerAgentInterface.OnPlaybackListener)
Content copied to clipboard
Add a playback listener
Link copied to clipboard
Notifies the display that has been cleared.
Link copied to clipboard
abstract fun displayCardRendered(templateId: String, controller: AudioPlayerDisplayInterface.Controller?)
Content copied to clipboard
Notifies the display that has been rendered.
Link copied to clipboard
Notifies the display that has been render failed.
Link copied to clipboard
This should be called when occur interaction(input event such as touch, drag, etc...) for display
Link copied to clipboard
abstract fun removeListener(listener: AudioPlayerAgentInterface.Listener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun removeOnDurationListener(listener: AudioPlayerAgentInterface.OnDurationListener)
Content copied to clipboard
Remove a listener
Link copied to clipboard
abstract fun removeOnPlaybackListener(listener: AudioPlayerAgentInterface.OnPlaybackListener)
Content copied to clipboard
Remove a playback listener
Link copied to clipboard
Request the favorite command if supported.
Link copied to clipboard
abstract fun requestRepeatCommand(current: AudioPlayerAgentInterface.RepeatMode)
Content copied to clipboard
Request the repeat command if supported.
Link copied to clipboard
Request the shuffle command if supported
Link copied to clipboard
abstract fun setElementSelected( templateId: String, token: String, postback: String? = null, callback: DisplayInterface.OnElementSelectedCallback? = null): String
Content copied to clipboard
Each element has it's own token.
Link copied to clipboard
Set a presenter for lyrics
Link copied to clipboard
abstract fun setRenderer(renderer: AudioPlayerDisplayInterface.Renderer?)
Content copied to clipboard
Set a renderer to interact with the display agent.
Link copied to clipboard
abstract fun setRequestCommandHandler(handler: AudioPlayerAgentInterface.RequestCommandHandler)
Content copied to clipboard