BluetoothDevice.GetEncryptionStatus(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得連接裝置的加密狀態。
[Android.Runtime.Register("getEncryptionStatus", "(I)Landroid/bluetooth/EncryptionStatus;", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.EncryptionStatus? GetEncryptionStatus(int transport);
[<Android.Runtime.Register("getEncryptionStatus", "(I)Landroid/bluetooth/EncryptionStatus;", "", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetEncryptionStatus : int -> Android.Bluetooth.EncryptionStatus
參數
- transport
- Int32
傳輸系統需要取得連結狀態。
傳回
裝置的加密狀態,若未加密或未連接,則為空。
- 屬性
備註
取得連接裝置的加密狀態。 這個 API 會回傳加密狀態(如果已連接)。 加密細節會被包裹在一個 EncryptionStatus 物件中,若裝置未加密(或未連接),該物件可能是空的
的 android.bluetooth.BluetoothDevice.getEncryptionStatus(int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。