public static interface

AudioRecordingController.AudioRecordingListener

com.pspdfkit.ui.audio.AudioRecordingController.AudioRecordingListener

Class Overview

Listener for audio recording events.

Summary

Public Methods
abstract void onError(AudioRecordingController controller, Throwable error)
Called when recording fails.
abstract void onPause(AudioRecordingController controller)
Called when audio recording is paused.
abstract void onReady(AudioRecordingController controller)
Called when audio is ready to be recorded.
abstract void onRecord(AudioRecordingController controller)
Called when audio recording is resumed.
abstract void onSave(AudioRecordingController controller)
Called when audio recording has been saved.
abstract void onStop(AudioRecordingController controller)
Called when audio recording stops, no audio can be recorded after this point.

Public Methods

public abstract void onError (AudioRecordingController controller, Throwable error)

Called when recording fails.

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

public abstract void onPause (AudioRecordingController controller)

Called when audio recording is paused.

Parameters
controller Controller for managing the recording.

public abstract void onReady (AudioRecordingController controller)

Called when audio is ready to be recorded.

Parameters
controller Controller for managing the recording.

public abstract void onRecord (AudioRecordingController controller)

Called when audio recording is resumed.

Parameters
controller Controller for managing the recording.

public abstract void onSave (AudioRecordingController controller)

Called when audio recording has been saved.

Parameters
controller Controller for managing the recording.

public abstract void onStop (AudioRecordingController controller)

Called when audio recording stops, no audio can be recorded after this point.

Parameters
controller Controller for managing the recording.