Android APIs
Added in API level 23
public static interface

AudioTrack.OnRoutingChangedListener

android.media.AudioTrack.OnRoutingChangedListener

Class Overview

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

Summary

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

Public Methods

public abstract void onRoutingChanged (AudioTrack audioTrack)

Added in API level 23

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