com.pspdfkit.ui.audio.AudioModeManager |
Interface for objects managing audio modes.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Checks whether sound annotation audio data is supported for playback.
annotation | Sound annotation we wish to play. |
---|
true
if the annotation contains valid sound data in supported format.
Checks whether sound annotation can be recorded into.
annotation | Sound annotation we wish to record into. |
---|
true
if the annotation does not have recording already.
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.
annotation | Sound annotation to playback. |
---|
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.
annotation | Sound annotation to record into. |
---|
Leaves currently active audio mode (playback or recording).