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。
返回
此生成器。 此值不能为 null。
- 特性
注解
设置蓝牙套接字的加密要求。
默认值为 false。
Android 参考。android.bluetooth.BluetoothSocketSettings.Builder.setEncryptionRequired
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。