-
public interface AudioStateListenerListener interface for audio state changes
-
-
Method Summary
Modifier and Type Method Description UnitonRecordingStateChanged(Boolean isRecording)Called when recording state changes UnitonPlaybackStateChanged(Boolean isPlaying)Called when playback state changes UnitonMuteStateChanged(Boolean isMuted)Called when mute state changes UnitonVolumeChanged(Float volume)Called when volume changes UnitonAudioError(String error, Throwable exception)Called when an audio error occurs -
-
Method Detail
-
onRecordingStateChanged
Unit onRecordingStateChanged(Boolean isRecording)
Called when recording state changes
- Parameters:
isRecording- true if recording started, false if stopped
-
onPlaybackStateChanged
Unit onPlaybackStateChanged(Boolean isPlaying)
Called when playback state changes
- Parameters:
isPlaying- true if playback started, false if stopped
-
onMuteStateChanged
Unit onMuteStateChanged(Boolean isMuted)
Called when mute state changes
- Parameters:
isMuted- true if muted, false if unmuted
-
onVolumeChanged
Unit onVolumeChanged(Float volume)
Called when volume changes
- Parameters:
volume- New volume level (0.0 to 1.
-
onAudioError
Unit onAudioError(String error, Throwable exception)
Called when an audio error occurs
- Parameters:
error- Description of the errorexception- Optional exception that caused the error
-
-
-
-