Contents

Method

SetBlueToothMode

ModuleNetwork
LibraryCore
Action

Turn Bluetooth on or off.

ParametersSetting (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.