BluetoothSocketSettings.Builder.SetEncryptionRequired(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
它設定了藍牙插槽的加密需求。
[Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/bluetooth/BluetoothSocketSettings$Builder;", "", ApiSince=36)]
public Android.Bluetooth.BluetoothSocketSettings.Builder SetEncryptionRequired(bool encryptionRequired);
[<Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/bluetooth/BluetoothSocketSettings$Builder;", "", ApiSince=36)>]
member this.SetEncryptionRequired : bool -> Android.Bluetooth.BluetoothSocketSettings.Builder
參數
- encryptionRequired
- Boolean
如果需要加密,則為 true,否則為 false。
傳回
這個建築商。 這個值不可能為零值。
- 屬性
備註
它設定了藍牙插槽的加密需求。
Android 參考資料。android.bluetooth.BluetoothSocketSettings.Builder.setEncryptionRequired
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。