Package com.pspdfkit.ui.audio
Interface AudioPlaybackController.AudioPlaybackListener
-
- All Implemented Interfaces:
public interface AudioPlaybackController.AudioPlaybackListener
Listener for audio playback events.
-
-
Method Summary
Modifier and Type Method Description abstract void
onReady(@NonNull() AudioPlaybackController controller)
Called when audio content is ready to be played. abstract void
onError(@NonNull() AudioPlaybackController controller, @NonNull() Throwable error)
Called when audio content cannot be played. abstract void
onPlay(@NonNull() AudioPlaybackController controller)
Called when audio content is playing. abstract void
onPause(@NonNull() AudioPlaybackController controller)
Called when audio content is paused. abstract void
onStop(@NonNull() AudioPlaybackController controller)
Called when audio content is stopped. -
-
Method Detail
-
onReady
abstract void onReady(@NonNull() AudioPlaybackController controller)
Called when audio content is ready to be played.
- Parameters:
controller
- Controller for managing the playback.
-
onError
abstract void onError(@NonNull() AudioPlaybackController controller, @NonNull() Throwable error)
Called when audio content cannot be played.
- Parameters:
controller
- Controller for managing the playback.error
- Cause of the error.
-
onPlay
abstract void onPlay(@NonNull() AudioPlaybackController controller)
Called when audio content is playing.
- Parameters:
controller
- Controller for managing the playback.
-
onPause
abstract void onPause(@NonNull() AudioPlaybackController controller)
Called when audio content is paused.
- Parameters:
controller
- Controller for managing the playback.
-
onStop
abstract void onStop(@NonNull() AudioPlaybackController controller)
Called when audio content is stopped. This is also called when audio playback completes.
- Parameters:
controller
- Controller for managing the playback.
-
-
-
-