CreateBluetoothList shows an Android dialog which allows the user to select a Bluetooth device from paired and discovered devices.
btl = app.CreateBluetoothList(
filter )
→
app object: BluetoothList
See Also: GetPairedBtDevices, DiscoverBtDevices.
Example - Basic
function OnStart()
{
lst = app.CreateBluetoothList();
lst.SetOnTouch( OnBtList );
}
function OnBtList(name, address)
{
app.Alert("Name: " + name + "\nAddress: " + address, "Result");
}
from native import app
def OnStart():
lst = app.CreateBluetoothList()
lst.SetOnTouch( OnBtList )
def OnBtList(name, address):
app.Alert("Name: " + name + "\nAddress: " + address, "Result")
Methods
The following methods are available on the BluetoothList object:
GetType() →
String: “BluetoothList”