Lingua

BluetoothSocketSettings.Builder.SetEncryptionRequired(Boolean) Method

Definition

Sets the encryption requirement for the Bluetooth socket.

[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

Parameters

encryptionRequired
Boolean

true if encryption is required for this socket, false otherwise.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the encryption requirement for the Bluetooth socket.

Android reference for android.bluetooth.BluetoothSocketSettings.Builder.setEncryptionRequired.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to