OnRoutingChangedListener
interfaceOnRoutingChangedListener: 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 |
onRoutingChanged(router: AudioRouting!) |
abstract Unit |
onRoutingChanged(audioTrack: AudioTrack!) Called when the routing of an AudioTrack changes from either and explicit or policy rerouting. |
Public methods
onRoutingChanged
open funonRoutingChanged(router: AudioRouting!): Unit
Deprecated: Deprecated in Java.
onRoutingChanged
Added in API level 23
abstract funonRoutingChanged(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.