Version: 5
restore

Contents

Method

SetAirplaneMode

ModuleNetwork
LibraryCore
Action

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

ParametersSetting (string): "on" indicates that flight mode should be turned on. Otherwise it is turned off. Now this is our home-grown version of airplane mode on Android. Since Android have deprecated programming airplane mode from a non-system app. We turn off WiFi and BlueTooth individually.
Return values

Succeeded (boolean): Indicates whether the action succeeded.

Example
 
Platforms
  • Android
Notes