Added in API level 23
Deprecated in API level 24

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.

Summary

Public methods
abstract Unit

Called when the routing of an AudioRecord changes from either and explicit or policy rerouting.

open Unit

Public methods

onRoutingChanged

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

Deprecated: Deprecated in Java.

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

onRoutingChanged

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

Deprecated: Deprecated in Java.