OnRoutingChangedListener

interface OnRoutingChangedListener : AudioRouting.OnRoutingChangedListener
android.media.AudioRecord.OnRoutingChangedListener

Defines the interface by which applications can receive notifications of routing changes for the associated AudioRecord.
Requires API level 23 (Android 6.0, Marshmallow)

Summary

Public methods
abstract Unit

This class was deprecated in API level 21.

open Unit

This class was deprecated in API level 21.

Public methods

onRoutingChanged

added in API level 23
abstract fun 
        onRoutingChanged
(audioRecord: AudioRecord!): Unit

Deprecated:

This class was deprecated in API level 21.

Called when the routing of an AudioRecord changes from either and explicit or policy rerouting. Use #getRoutedDevice() to retrieve the newly routed-from device.
Requires API level 23 (Android 6.0, Marshmallow)

onRoutingChanged

added in API level 24
open fun 
        onRoutingChanged
(router: AudioRouting!): Unit

Deprecated:

This class was deprecated in API level 21.

Requires API level 24 (Android 7.0, Nougat) Requires API level 24 (Android 7.0, Nougat)