# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Methods

# AudioRecordingMonitor

`public interface AudioRecordingMonitor`
``

android.media.AudioRecordingMonitor

Known indirect subclasses AudioRecord, MediaRecorder
AudioRecord | The AudioRecord class manages the audio resources for Java applications to record audio from the audio input hardware of the platform.
MediaRecorder | Used to record audio and video.

AudioRecordingMonitor defines an interface implemented by `AudioRecord` and `MediaRecorder` allowing applications to install a callback and be notified of changes in the capture path while recoding is active.

## Summary

### Public methods
`abstract AudioRecordingConfiguration` | `getActiveRecordingConfiguration()` Returns the current active audio recording for this audio recorder.
`abstract void` | `registerAudioRecordingCallback(Executor executor, AudioManager.AudioRecordingCallback cb)` Register a callback to be notified of audio capture changes via a `AudioManager.AudioRecordingCallback`.
`abstract void` | `unregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback cb)` Unregister an audio recording callback previously registered with `registerAudioRecordingCallback(java.util.concurrent.Executor, android.media.AudioManager.AudioRecordingCallback)`.

## Public methods

### getActiveRecordingConfiguration

    public abstract AudioRecordingConfiguration getActiveRecordingConfiguration ()

Returns the current active audio recording for this audio recorder.

Returns
`AudioRecordingConfiguration` | a valid `AudioRecordingConfiguration` if this recorder is active or null otherwise.

See also:

- `AudioRecordingConfiguration`

### registerAudioRecordingCallback

    public abstract void registerAudioRecordingCallback (Executor executor,
                    AudioManager.AudioRecordingCallback cb)

Register a callback to be notified of audio capture changes via a `AudioManager.AudioRecordingCallback`. A callback is received when the capture path configuration changes (pre-processing, format, sampling rate...) or capture is silenced/unsilenced by the system.

Parameters
`executor` | `Executor`: `Executor` to handle the callbacks. This value cannot be `null`. Callback and listener events are dispatched through this `Executor`, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use `Context.getMainExecutor()`. To dispatch events through a shared thread pool, you can use `AsyncTask#THREAD_POOL_EXECUTOR`.
`cb` | `AudioManager.AudioRecordingCallback`: non-null callback to register This value cannot be `null`.

### unregisterAudioRecordingCallback

    public abstract void unregisterAudioRecordingCallback (AudioManager.AudioRecordingCallback cb)

Unregister an audio recording callback previously registered with `registerAudioRecordingCallback(java.util.concurrent.Executor, android.media.AudioManager.AudioRecordingCallback)`.

Parameters
`cb` | `AudioManager.AudioRecordingCallback`: non-null callback to unregister This value cannot be `null`.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*