public interface

AudioModeManager

implements AudioModeListeners
com.pspdfkit.ui.audio.AudioModeManager

Class Overview

Interface for objects managing audio modes.

Summary

Public Methods
abstract boolean canPlay(SoundAnnotation annotation)
Checks whether sound annotation audio data is supported for playback.
abstract boolean canRecord(SoundAnnotation annotation)
Checks whether sound annotation can be recorded into.
abstract void enterAudioPlaybackMode(SoundAnnotation annotation)
Activates audio playback mode when the sound annotation contains valid sound data in supported format.
abstract void enterAudioRecordingMode(SoundAnnotation annotation)
Activates audio recording mode when the sound annotation can be recorded into.
abstract void exitActiveAudioMode()
Leaves currently active audio mode (playback or recording).
[Expand]
Inherited Methods
From interface com.pspdfkit.ui.audio.AudioModeListeners

Public Methods

public abstract boolean canPlay (SoundAnnotation annotation)

Checks whether sound annotation audio data is supported for playback.

Parameters
annotation Sound annotation we wish to play.
Returns
  • true if the annotation contains valid sound data in supported format.

public abstract boolean canRecord (SoundAnnotation annotation)

Checks whether sound annotation can be recorded into.

Parameters
annotation Sound annotation we wish to record into.
Returns
  • true if the annotation does not have recording already.

public abstract void enterAudioPlaybackMode (SoundAnnotation annotation)

Activates audio playback mode when the sound annotation contains valid sound data in supported format. If recording mode is active, it is left first before entering audio playback mode.

Parameters
annotation Sound annotation to playback.

public abstract void enterAudioRecordingMode (SoundAnnotation annotation)

Activates audio recording mode when the sound annotation can be recorded into. If playback mode is active, it is left first before entering audio recording mode.

Parameters
annotation Sound annotation to record into.

public abstract void exitActiveAudioMode ()

Leaves currently active audio mode (playback or recording).