PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
BTStatus (Function)
In french: BTEtat
Returns the current Bluetooth activation status on the device or asks to be notified when the activation status changes. To enable or disable the Bluetooth on the device, use BTActivate.
Remark: Bluetooth functions are not available in the Android emulator.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Example
IF BTStatus() = btDisabled THEN
        BTActivate(True)
END
Syntax

Finding out the Bluetooth activation status Hide the details

<Result> = BTStatus()
<Result>: Integer constant
Bluetooth activation status:
btEnabledThe Bluetooth is enabled on the device.
btActivationInProgressThe Bluetooth is being enabled on the device.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
btDisabledThe Bluetooth is disabled on the device.
btErrorThe Bluetooth activation status could not be retrieved.

Enabling the notification whenever Bluetooth activation changes Hide the details

BTStatus(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
Name of the WLangage procedure ("callback" procedure) that will be called when the Bluetooth activation status changes on the device.
For more details on this procedure, see Parameters of the procedure used by BTStatus.
If this parameter corresponds to an empty string (""), the notifications will not be sent anymore when the status changes. The function has no effect if no notification request was performed.
Remarks

Required permissions

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