DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:nxt_isbluetoothenabled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:nxt_isbluetoothenabled [2015/03/09 15:54] (current)
octazid created
Line 1: Line 1:
 +====== IsBluetoothEnabled ======
  
 +The **IsBluetoothEnabled** function checks if Bluetooth is enabled on the phone/​tablet.
 +<​code>​enabled = nxt.IsBluetoothEnabled();</​code>​
 +
 +
 +====Example====
 +<code javascript>​
 +function OnStart()
 +{
 +  nxt = app.CreateNxt();​
 +  enabled = nxt.IsBluetoothEnabled();​
 +  app.ShowPopup( enabled );
 +
 +</​code>​
built_in/nxt_isbluetoothenabled.txt ยท Last modified: 2015/03/09 15:54 by octazid