Bluetooth Admin¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Connectivity | API 21, Android 5.0 Lollipop | 2 |
Overview¶
A non-visible component that acts as a bluetooth admin.
Permissions
Events¶
After Pairing¶
Event triggers when Pairing has finished.
After Scanning¶
Event triggers when Scanning has finished.
After Unpairing¶
Event triggers when Unpairing has finished.
Error Occurred¶
Event triggers when an error occurred.
State Changed¶
Event triggers when the bluetooth state changed.
Methods¶
Disable¶
Disable Bluetooth
Enable¶
Enable Bluetooth
Has Bluetooth¶
Returns: Boolean
Returns if the device has Bluetooth
Mac Address¶
Returns: Text
Returns the Bluetooth MacAddress.
Pair¶
Pair Bluetooth device.
Scan¶
Scan Bluetooth devices. Caution: Performing device discovery is a heavy procedure for the Bluetooth adapter and will consume a lot of its resources. If you already hold a connection with a device, then performing discovery can significantly reduce the bandwidth available for the connection, so you should not perform discovery while connected.
Scan Mode¶
Returns: Text
Returns the scan mode of the Bluetooth Adapter
State¶
Returns: Text
Returns the state of the Bluetooth Adapter.
Toggle¶
Toggle Bluetooth
Unpairing¶
Unpair Bluetooth device.
Validate Mac Address¶
Returns: Boolean
Returns true if the MacAddress is valid.
Validate User Mac Address¶
Returns: Boolean
Returns true if the User MacAddress is valid.
Properties¶
Use Codes¶
Boolean Default: False Read Write - Designer Blocks
Use codes instead of strings in returns for ScanMode and State.