public static interface

AudioPlaybackController.AudioPlaybackListener

com.pspdfkit.ui.audio.AudioPlaybackController.AudioPlaybackListener

Class Overview

Listener for audio playback events.

Summary

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.

Public Methods

public abstract void onError (AudioPlaybackController controller, Throwable error)

Called when audio content cannot be played.

Parameters
controller Controller for managing the playback.
error Cause of the error.

public abstract void onPause (AudioPlaybackController controller)

Called when audio content is paused.

Parameters
controller Controller for managing the playback.

public abstract void onPlay (AudioPlaybackController controller)

Called when audio content is playing.

Parameters
controller Controller for managing the playback.

public abstract void onReady (AudioPlaybackController controller)

Called when audio content is ready to be played.

Parameters
controller Controller for managing the playback.

public abstract void onStop (AudioPlaybackController controller)

Called when audio content is stopped. This is also called when audio playback completes.

Parameters
controller Controller for managing the playback.