hasBluetoothPermission

Checks if the application has permission to use Bluetooth.

This method verifies whether the app has been granted the BLUETOOTH_CONNECT permission. Required for Android 12 (API level 31) and above.

Return

true if the Bluetooth permission is granted, false otherwise.