Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsBlueToothRadioMBS class.

WindowsBlueToothRadioMBS.EnableDiscovery(radio as WindowsBlueToothRadioMBS = nil, enable as boolean = true) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Changes the discovery state of a local Bluetooth radio or radios.

Enabled: Flag specifying whether discovery is to be enabled or disabled. Set to TRUE to enable discovery, set to FALSE to disable discovery.

Returns true if the discovery state was successfully changed.
Returns false if discovery state was not changed.

Use the IsDiscoverable function to determine the current state of a Bluetooth radio. Windows ensures that a discoverable system is connectable, and as such, the radio must allow incoming connections prior to making a radio discoverable. Failure to allow incoming connections results in the BluetoothEnableDiscovery function call failing.
When EnableDiscovery changes the discovery state, the new state is valid for the lifetime of the calling application. Additionally, if a Bluetooth radio previously made discoverable with this function is disabled and re-enabled via the application, discoverability will not persist. Once the calling application terminates, the discovery state of the specified Bluetooth radio reverts to the state it was in before EnableDiscovery was called.

WindowsBlueToothRadioMBS.EnableIncomingConnections(radio as WindowsBlueToothRadioMBS = nil, enable as boolean = true) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Modifies whether a local Bluetooth radio accepts incoming connections.

Flag specifying whether incoming connection acceptance is to be enabled or disabled. Set to true to enable incoming connections, set to false to disable incoming connections.

Returns true if the incoming connection state was successfully changed.
Returns false if incoming connection state was not changed.

A radio that is non-connectable is non-discoverable. The radio must be made non-discoverable prior to making a radio non-connectable. Failure to make a radio non-discoverable prior to making it non-connectable will result in failure of the EnableIncomingConnections function call.

WindowsBlueToothRadioMBS.FirstRadio as WindowsBlueToothRadioMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Queries first radio.

Lasterror is set.

WindowsBlueToothRadioMBS.Radios as WindowsBlueToothRadioMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Queries radios.

Lasterror is set.

Some examples using this method:

WindowsBlueToothRadioMBS.RemoveDevice(Address as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Removes authentication between a Bluetooth device and the computer and clears cached service information for the device.

Lasterror is set.

WindowsBlueToothRadioMBS.UpdateDeviceRecord(Address as string, Name as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ❌ No ✅ Yes ❌ No ❌ No All
Updates the local computer cache about a Bluetooth device.

Lasterror is set.

When updating a Bluetooth device record, please pass:

Address: Must be a previously found radio address.
Name: Must contain the new name to be stored.

The items on this page are in the following plugins: MBS Bluetooth Plugin.


The biggest plugin in space...