java.lang.Object | |
↳ | lineageos.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.
Parameters | |
---|---|
value |
int : ex: STATE_DISALED |
override |
boolean : whether or not the setting should override user settings
|
Get the default value for the AirplaneModeSettings
Returns | |
---|---|
int |
integer value corresponding with its brightness value |
Check whether or not the AirplaneModeSettings
overrides user settings.
Returns | |
---|---|
boolean |
true if override |
Set whether or not the AirplaneModeSettings
should override default user values
Parameters | |
---|---|
override |
boolean : boolean override
|
Set the default value for the AirplaneModeSettings
Parameters | |
---|---|
value |
int : STATE_DISALED
|