Usage Scenario: Bluetooth Permission Check in a Mobile Application

On an application screen, the user will be asked to grant Bluetooth permission. When the user clicks the “Scan Devices” button, a warning message will be displayed if the application does not have Bluetooth permission.

1. Go to the UI Design module.

  • Add a Button element.
  • In the Properties panel, set the button name to “Scan Devices.”

2. To check Bluetooth permission when this button is clicked, add the following action from the + ADD ACTION menu:

  • OnClick → Custom → Kuika → BluetoothPermissionIsGiven_bluetooth.

3. Action configuration:

Enter the action parameters as follows:

  • showAlert: true
  • alertMessage: “Bluetooth permission is required to scan devices.”

Once these steps are complete, when the user clicks the button, the application checks whether Bluetooth permission has been granted. If permission has not been granted, a warning message is displayed on the screen.