Most visited

Recently visited

Added in API level 23
Deprecated since API level 24

AudioRecord.OnRoutingChangedListener

public static interface AudioRecord.OnRoutingChangedListener
implements AudioRouting.OnRoutingChangedListener

android.media.AudioRecord.OnRoutingChangedListener


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

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

Summary

Public methods

default void onRoutingChanged(AudioRouting router)
abstract void onRoutingChanged(AudioRecord audioRecord)

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

Inherited methods

From interface android.media.AudioRouting.OnRoutingChangedListener

Public methods

onRoutingChanged

Added in API level 24
void onRoutingChanged (AudioRouting router)

Parameters
router AudioRouting

onRoutingChanged

Added in API level 23
void onRoutingChanged (AudioRecord audioRecord)

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

Parameters
audioRecord AudioRecord

Hooray!