Skip to main content

1E 8.1 (on-premises)

Network.SetBlueToothMode

Method

SetBlueToothMode

Module

Network

Library

Core

Action

Turn Bluetooth on or off.

Parameters

Setting (string): "on" indicates that bluetooth should be turned on. Otherwise it is turned off.

Return values

Succeeded (boolean): Indicates whether the action succeeded.

Example

Network.SetBlueToothMode(Setting:"on");
 
Network.SetBlueToothMode(Setting:"off");

Platforms

  • Android

Notes

Be careful of the case of the method name. Ideally this should be "SetBluetoothMode" because the technology is "Bluetooth" not "BlueTooth". See Network.SetWiFiMode and Network.SetAirplaneMode for details on turning those features on or off separately.