語言

BluetoothA2dp.ExtraDisconnectedReason 欄位

定義

在 Intent 中用作 int 額外欄位 BluetoothA2dp#ACTION_CONNECTION_STATE_CHANGED ,用於連線失敗的原因。

[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 intents中用作連接失敗的額外欄位。 該值為 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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於