Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
We turn off
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 or off separately.

Return values

Succeeded (boolean): Indicates whether the action succeeded.

Example
Code Block
languageperl
 
Platforms
  • Android
Notes