Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Method

SetAirplaneMode

ModuleNetwork
LibraryCore
Action

Excerpt
Turn airplane mode, also known as flight mode, on or off.

ParametersSetting (string): "on" indicates that airplane mode should be turned on, otherwise it is turned off.
Return values

Succeeded (boolean): Indicates whether the action succeeded.

Example
Code Block
languageperl
 
Platforms
  • Android
Notes

This is now our home-grown version of airplane mode on Android, since Android have deprecated programming airplane mode by a non-system app. WiFi and BlueTooth can be turned on See Network.SetWiFiMode and Network.SetBlueToothMode for details on turning those features on or off separately.