Stay organized with collections
Save and categorize content based on your preferences.
AudioRecordingCallback
abstract class AudioRecordingCallback
Interface for receiving update notifications about the recording configuration. Extend this abstract class and register it with AudioManager.registerAudioRecordingCallback(AudioRecordingCallback, Handler)
to be notified. Use AudioManager.getActiveRecordingConfigurations()
to query the current configuration.
Summary
Public methods |
open Unit |
Called whenever the device recording configuration has changed.
|
Public constructors
AudioRecordingCallback
AudioRecordingCallback()
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AudioManager.AudioRecordingCallback\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAudioRecordingCallback\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/AudioManager.AudioRecordingCallback \"View this page in Java\") \n\n```\nabstract class AudioRecordingCallback\n```\n\n|---|--------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.AudioManager.AudioRecordingCallback](#) |\n\nInterface for receiving update notifications about the recording configuration. Extend this abstract class and register it with [AudioManager.registerAudioRecordingCallback(AudioRecordingCallback, Handler)](/reference/kotlin/android/media/AudioManager#registerAudioRecordingCallback(android.media.AudioManager.AudioRecordingCallback,%20android.os.Handler)) to be notified. Use [AudioManager.getActiveRecordingConfigurations()](/reference/kotlin/android/media/AudioManager#getActiveRecordingConfigurations()) to query the current configuration.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------|---|\n| [AudioRecordingCallback](#AudioRecordingCallback())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRecordingConfigChanged](#onRecordingConfigChanged(kotlin.collections.MutableList))`(`configs:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[AudioRecordingConfiguration](/reference/kotlin/android/media/AudioRecordingConfiguration)!\u003e!`)` Called whenever the device recording configuration has changed. |\n\nPublic constructors\n-------------------\n\n### AudioRecordingCallback\n\n```\nAudioRecordingCallback()\n```\n\nPublic methods\n--------------\n\n### onRecordingConfigChanged\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun onRecordingConfigChanged(configs: MutableList\u003cAudioRecordingConfiguration!\u003e!): Unit\n```\n\nCalled whenever the device recording configuration has changed.\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `configs` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[AudioRecordingConfiguration](/reference/kotlin/android/media/AudioRecordingConfiguration)!\\\u003e!: list containing the results of [AudioManager.getActiveRecordingConfigurations()](/reference/kotlin/android/media/AudioManager#getActiveRecordingConfigurations()). |"]]