| java.lang.Object | |
| ↳ | cyanogenmod.profiles.AirplaneModeSettings |
The AirplaneModeSettings class allows for overriding and setting the airplane mode.
Example for setting the airplane mode to enabled:
AirplaneModeSettings airplaneMode = new AirplaneModeSettings(BooleanState.STATE_ENABLED, true) profile.setAirplaneMode(airplaneMode);
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AirplaneModeSettings.BooleanState |
BooleanStates for specific AirplaneModeSettings
|
||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Unwrap
AirplaneModeSettings from a parcel.
| |||||||||||
Construct a
AirplaneModeSettings with a default value of
STATE_DISALED.
| |||||||||||
Construct a
AirplaneModeSettings with a default value and whether or not it should
override user settings.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the default value for the
AirplaneModeSettings
| |||||||||||
Check whether or not the
AirplaneModeSettings overrides user settings.
| |||||||||||
Set whether or not the
AirplaneModeSettings should override default user values
| |||||||||||
Set the default value for the
AirplaneModeSettings
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Unwrap AirplaneModeSettings from a parcel.
Construct a AirplaneModeSettings with a default value of
STATE_DISALED.
Construct a AirplaneModeSettings with a default value and whether or not it should
override user settings.
| value | ex: STATE_DISALED |
|---|---|
| override | whether or not the setting should override user settings |
Get the default value for the AirplaneModeSettings
Check whether or not the AirplaneModeSettings overrides user settings.
Set whether or not the AirplaneModeSettings should override default user values
| override | boolean override |
|---|
Set the default value for the AirplaneModeSettings
| value | STATE_DISALED
|
|---|