Stay organized with collections
Save and categorize content based on your preferences.
AudioRouting.OnRoutingChangedListener
public
static
interface
AudioRouting.OnRoutingChangedListener
android.media.AudioRouting.OnRoutingChangedListener
|
Known indirect subclasses
|
Defines the interface by which applications can receive notifications of routing
changes for the associated AudioRouting
.
Summary
Public methods
public abstract void onRoutingChanged (AudioRouting router)
Parameters |
router |
AudioRouting |
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,["# AudioRouting.OnRoutingChangedListener\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nAudioRouting.OnRoutingChangedListener\n=====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/AudioRouting.OnRoutingChangedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAudioRouting.OnRoutingChangedListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.media.AudioRouting.OnRoutingChangedListener |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AudioRecord.OnRoutingChangedListener](/reference/android/media/AudioRecord.OnRoutingChangedListener), [AudioTrack.OnRoutingChangedListener](/reference/android/media/AudioTrack.OnRoutingChangedListener) |-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AudioRecord.OnRoutingChangedListener](/reference/android/media/AudioRecord.OnRoutingChangedListener) | *This interface was deprecated in API level 24. users should switch to the general purpose [AudioRouting.OnRoutingChangedListener](/reference/android/media/AudioRouting.OnRoutingChangedListener) class instead.* | | [AudioTrack.OnRoutingChangedListener](/reference/android/media/AudioTrack.OnRoutingChangedListener) | *This interface was deprecated in API level 24. users should switch to the general purpose [AudioRouting.OnRoutingChangedListener](/reference/android/media/AudioRouting.OnRoutingChangedListener) class instead.* | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines the interface by which applications can receive notifications of routing\nchanges for the associated [AudioRouting](/reference/android/media/AudioRouting).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onRoutingChanged](/reference/android/media/AudioRouting.OnRoutingChangedListener#onRoutingChanged(android.media.AudioRouting))`(`[AudioRouting](/reference/android/media/AudioRouting)` router) ` |\n\nPublic methods\n--------------\n\n### onRoutingChanged\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRoutingChanged (AudioRouting router)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------------|\n| `router` | `AudioRouting` \u003cbr /\u003e |"]]