语言

BluetoothHeadset.ExtraDisconnectedReason 字段

定义

由于连接失败的原因,用作意向中的 ActionConnectionStateChanged 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

字段值

实现

特性

注解

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

该值为下列值之一:BluetoothStatusCodes.SUCCESS;BluetoothStatusCodes.ERROR_UNKNOWN;BluetoothStatusCodes.ERROR_INSUFFICIENT_RESOURCES;BluetoothStatusCodes.ERROR_SDP_DISCOVERY_FAILED;BluetoothStatusCodes.ERROR_RFCOMM_CONNECTION_FAILED

Android 参考。android.bluetooth.BluetoothHeadset.EXTRA_DISCONNECTED_REASON

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

适用于