The Bluetooth Is Open action is used to check whether Bluetooth is turned on on the mobile device. It allows you to check the Bluetooth status of the device before triggering Bluetooth-powered functions of your application. If Bluetooth is turned off, the user can be shown a warning or the operation can be stopped.
Technical Specifications
1. Adding a Bluetooth Data Source
2. Defining a New Method
3. Adding Bluetooth Is Open Action
Parameter Definitions
On an application screen, we want to add a button to prompt the user to turn on Bluetooth. When the user presses the “Scan with Bluetooth” button, a warning will be shown if Bluetooth is not turned on on the device.
1. Switch to the UI Design module.
2. To start the scanning process when this button is clicked + ADD ACTION menu:
OnClick → Custom → Kuika → BluetoothIsOpen_bluetooth action.
3. Action configuration:
Enter the parameters of the action as follows:
After these steps, when the user presses the button, a warning message will be displayed on the screen if Bluetooth is not turned on on the device.
Technical Risks and Control