airplaneModeState property

String? airplaneModeState
getter/setter pair

Controls whether airplane mode can be toggled by the user or not. Possible string values are:

  • "AIRPLANE_MODE_STATE_UNSPECIFIED" : Unspecified. Defaults to AIRPLANE_MODE_USER_CHOICE.
  • "AIRPLANE_MODE_USER_CHOICE" : The user is allowed to toggle airplane mode on or off.
  • "AIRPLANE_MODE_DISABLED" : Airplane mode is disabled. The user is not allowed to toggle airplane mode on. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.

Implementation

core.String? airplaneModeState;