BluetoothDevice.GetEncryptionStatus(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the encryption status of the connected device.
[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
Parameters
- transport
- Int32
the transport to get the link status for.
Returns
the encryption status of the device, null if the device is not encrypted or not connected.
- Attributes
Remarks
Get the encryption status of the connected device. This API will return the encryption state (if connected). The encryption details are enclosed in a EncryptionStatus object, which can be null if the device is not encrypted (or not connected)
Java documentation for android.bluetooth.BluetoothDevice.getEncryptionStatus(int).
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.