Bluetooth Admin

Non-Visible component
Category Requires Version
Connectivity API 19, Android 4.4 - 4.4.4 KitKat 2

Overview

A non-visible component that acts as a bluetooth admin.

Permissions

Events

After Pairing

Event triggers when Pairing has finished.

Params
address Text

After Scanning

Event triggers when Scanning has finished.

Params
paired Devices Any
new Devices Any

After Unpairing

Event triggers when Unpairing has finished.

Params
address Text

Error Occurred

Event triggers when an error occurred.

Params
message Text

State Changed

Event triggers when the bluetooth state changed.

Params
state Text

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.

Params
address Text

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.

Params
address Text

Validate Mac Address

Returns: Boolean

Returns true if the MacAddress is valid.

Params
mac Address Text

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.


Last update: January 27, 2020