Added in API level 23
Deprecated in API level 24

OnRoutingChangedListener


interface OnRoutingChangedListener : AudioRouting.OnRoutingChangedListener
android.media.AudioTrack.OnRoutingChangedListener

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

Summary

Public methods
open Unit

abstract Unit

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

Public methods

onRoutingChanged

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

Deprecated: Deprecated in Java.

onRoutingChanged

Added in API level 23
abstract fun onRoutingChanged(audioTrack: AudioTrack!): Unit

Deprecated: Deprecated in Java.

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