Added in API level 24

AudioRouting.OnRoutingChangedListener


public static interface AudioRouting.OnRoutingChangedListener

android.media.AudioRouting.OnRoutingChangedListener
AudioRecord.OnRoutingChangedListener This interface was deprecated in API level 24. users should switch to the general purpose AudioRouting.OnRoutingChangedListener class instead. 
AudioTrack.OnRoutingChangedListener This interface was deprecated in API level 24. users should switch to the general purpose AudioRouting.OnRoutingChangedListener class instead. 


Defines the interface by which applications can receive notifications of routing changes for the associated AudioRouting.

Summary

Public methods

abstract void onRoutingChanged(AudioRouting router)

Public methods

onRoutingChanged

Added in API level 24
public abstract void onRoutingChanged (AudioRouting router)

Parameters
router AudioRouting