Version: 6
restore

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. This is now our home-grown version of airplane mode on Android, since Android have deprecated programming airplane mode by a non-system app. We turn off WiFi and BlueTooth separately.
Return values

Succeeded (boolean): Indicates whether the action succeeded.

Example
 
Platforms
  • Android
Notes