Contents

Method

SetAirplaneMode

ModuleNetwork
LibraryCore
Action

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
Network.SetAirplaneMode(Setting:"on");
 
Network.SetAirplaneMode(Setting:"off");
Platforms
  • Android
Notes

This is the SCALE method of controlling airplane mode on Android, since Android have deprecated programming airplane mode by a non-system app. See Network.SetWiFiMode and Network.SetBlueToothMode for details on turning those features on or off separately.