Interface AudioModeListeners
-
- All Implemented Interfaces:
public interface AudioModeListeners
Interface for objects that manage a list of audio mode listener instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
AudioModeListeners.AudioPlaybackModeChangeListener
Listener for audio playback mode changes.
public interface
AudioModeListeners.AudioRecordingModeChangeListener
Listener for audio recording mode changes.
-
Method Summary
Modifier and Type Method Description abstract void
addAudioPlaybackModeChangeListener(@NonNull() AudioModeListeners.AudioPlaybackModeChangeListener listener)
Registers a AudioPlaybackModeChangeListener to get notified when audio playback mode gets updated. abstract void
removeAudioPlaybackModeChangeListener(@NonNull() AudioModeListeners.AudioPlaybackModeChangeListener listener)
Removes a previously registered AudioPlaybackModeChangeListener. abstract void
addAudioRecordingModeChangeListener(@NonNull() AudioModeListeners.AudioRecordingModeChangeListener listener)
Registers a AudioRecordingModeChangeListener to get notified when audio recording mode gets updated. abstract void
removeAudioRecordingModeChangeListener(@NonNull() AudioModeListeners.AudioRecordingModeChangeListener listener)
Removes a previously registered AudioRecordingModeChangeListener. -
-
Method Detail
-
addAudioPlaybackModeChangeListener
abstract void addAudioPlaybackModeChangeListener(@NonNull() AudioModeListeners.AudioPlaybackModeChangeListener listener)
Registers a AudioPlaybackModeChangeListener to get notified when audio playback mode gets updated. If the provider has been registered previously, this method will be a no-op.
- Parameters:
listener
- Listener to register.
-
removeAudioPlaybackModeChangeListener
abstract void removeAudioPlaybackModeChangeListener(@NonNull() AudioModeListeners.AudioPlaybackModeChangeListener listener)
Removes a previously registered AudioPlaybackModeChangeListener. If the provider hasn't been registered previously, this method will be a no-op.
- Parameters:
listener
- Listener to unregister.
-
addAudioRecordingModeChangeListener
abstract void addAudioRecordingModeChangeListener(@NonNull() AudioModeListeners.AudioRecordingModeChangeListener listener)
Registers a AudioRecordingModeChangeListener to get notified when audio recording mode gets updated. If the provider has been registered previously, this method will be a no-op.
- Parameters:
listener
- Listener to register.
-
removeAudioRecordingModeChangeListener
abstract void removeAudioRecordingModeChangeListener(@NonNull() AudioModeListeners.AudioRecordingModeChangeListener listener)
Removes a previously registered AudioRecordingModeChangeListener. If the provider hasn't been registered previously, this method will be a no-op.
- Parameters:
listener
- Listener to unregister.
-
-
-
-