Most visited

Recently visited

Added in API level 23
Deprecated since API level 24

AudioTrack.OnRoutingChangedListener

public static interface AudioTrack.OnRoutingChangedListener
implements AudioRouting.OnRoutingChangedListener

android.media.AudioTrack.OnRoutingChangedListener


此接口在API级别24中已被弃用。
用户应改用通用AudioRouting.OnRoutingChangedListener

定义应用程序可以接收关联 AudioTrack的路由更改通知的 AudioTrack

Summary

Public methods

abstract void onRoutingChanged(AudioTrack audioTrack)

当AudioTrack的路由从显式更改或策略重新路由更改时调用。

default void onRoutingChanged(AudioRouting router)

Inherited methods

From interface android.media.AudioRouting.OnRoutingChangedListener

Public methods

onRoutingChanged

Added in API level 23
void onRoutingChanged (AudioTrack audioTrack)

当AudioTrack的路由从显式更改或策略重新路由更改时调用。 使用getRoutedDevice()来检索新路由到的设备。

Parameters
audioTrack AudioTrack

onRoutingChanged

Added in API level 24
void onRoutingChanged (AudioRouting router)

Parameters
router AudioRouting

Hooray!