ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Remark: 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:
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 value): Enables the Bluetooth on the device.
  • False: Disables the Bluetooth on the device.
Remarks

Required permissions

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

Last update: 06/21/2023

Send a report | Local help