Skip to main content

1E 8.1 (on-premises)

Network.SetAirplaneMode

Method

SetAirplaneMode

Module

Network

Library

Core

Action

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

Parameters

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