com.pspdfkit.ui.audio.AudioPlaybackController.AudioPlaybackListener |
Listener for audio playback events.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onError(AudioPlaybackController controller, Throwable error)
Called when audio content cannot be played.
| ||||||||||
abstract void |
onPause(AudioPlaybackController controller)
Called when audio content is paused.
| ||||||||||
abstract void |
onPlay(AudioPlaybackController controller)
Called when audio content is playing.
| ||||||||||
abstract void |
onReady(AudioPlaybackController controller)
Called when audio content is ready to be played.
| ||||||||||
abstract void |
onStop(AudioPlaybackController controller)
Called when audio content is stopped.
|
Called when audio content cannot be played.
controller | Controller for managing the playback. |
---|---|
error | Cause of the error. |
Called when audio content is paused.
controller | Controller for managing the playback. |
---|
Called when audio content is playing.
controller | Controller for managing the playback. |
---|
Called when audio content is ready to be played.
controller | Controller for managing the playback. |
---|
Called when audio content is stopped. This is also called when audio playback completes.
controller | Controller for managing the playback. |
---|