语言

BluetoothA2dp.ExtraDisconnectedReason 字段

定义

由于连接失败的原因,用作意向中的 BluetoothA2dp#ACTION_CONNECTION_STATE_CHANGED int extra 字段。

[Android.Runtime.Register("EXTRA_DISCONNECTED_REASON", ApiSince=37)]
public const string ExtraDisconnectedReason;
[<Android.Runtime.Register("EXTRA_DISCONNECTED_REASON", ApiSince=37)>]
val mutable ExtraDisconnectedReason : string

字段值

实现

特性

注解

由于连接失败的原因,用作BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED意向中的 int extra 字段。 该值是 BluetoothStatusCodes.SUCCESS 之一;BluetoothStatusCodes.ERROR_UNKNOWN;;BluetoothStatusCodes.ERROR_INSUFFICIENT_RESOURCES;;BluetoothStatusCodes.ERROR_SDP_DISCOVERY_FAILED;;BluetoothStatusCodes.ERROR_STREAM_CONNECTION_FAILED;;BluetoothStatusCodes.ERROR_ROLE_SWITCH_FAILED;;BluetoothStatusCodes.ERROR_AVDTP_DISCOVERY_FAILED。

Android 参考。android.bluetooth.BluetoothA2dp.EXTRA_DISCONNECTED_REASON

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于