Android APIs
Added in API level 23
public static interface

AudioRecord.OnRoutingChangedListener

android.media.AudioRecord.OnRoutingChangedListener

Class Overview

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

Summary

Public Methods
abstract void onRoutingChanged(AudioRecord audioRecord)
Called when the routing of an AudioRecord changes from either and explicit or policy rerouting.

Public Methods

public abstract void onRoutingChanged (AudioRecord audioRecord)

Added in API level 23

Called when the routing of an AudioRecord changes from either and explicit or policy rerouting. Use getRoutedDevice() to retrieve the newly routed-from device.