ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BTActivate (Function)
In french: BTActive
Enables or disables the management of Bluetooth on the device. To find out the activation status of Bluetooth on the device or to be notified when the status changes, use BTStatus.
Note: Bluetooth functions are not available in the Android emulator.
Example
IF BTStatus() = btDisabled THEN
	BTActivate(True)
END
Syntax
<Result> = BTActivate([<Activation of Bluetooth>])
<Result>: Integer constant
Bluetooth activation status after the modification. The possible values are as follows:
btActivationInProgressThe Bluetooth is being enabled on the device.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
btDisabledThe Bluetooth is disabled on the device.
btEnabledThe Bluetooth is enabled on the device.
btErrorThe Bluetooth activation status could not be retrieved.
<Activation of Bluetooth>: Optional boolean
New activation status of Bluetooth:
  • True (default): Enables Bluetooth on the device.
  • False Disables Bluetooth on the device.
Remarks

Required permissions

This function changes the permissions required by the application.
Required permissions:
  • BLUETOOTH: this permission allows applications to connect to Bluetooth services.
  • BLUETOOTH_ADMIN: this permission enables applications to discover and connect Bluetooth devices.
Component: wd300android.jar
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help