java.lang.Object | |
↳ | lineageos.profiles.RingModeSettings |
The StreamSettings
class allows for creating various AudioManager
overrides on the device depending on their capabilities.
Example for setting the default ring mode to muted:
RingModeSettings ringSettings = new RingModeSettings(RING_MODE_MUTE, true)); profile.setRingMode(ringSettings);
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | RING_MODE_MUTE | ||||||||||
String | RING_MODE_NORMAL | ||||||||||
String | RING_MODE_VIBRATE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Unwrap
RingModeSettings from a parcel.
| |||||||||||
Construct a
RingModeSettings with a default state of #RING_MODE_NORMAL.
| |||||||||||
Construct a
RingModeSettings with a default value and whether or not it should
override user settings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the default value for the
RingModeSettings
| |||||||||||
Check whether or not the
RingModeSettings overrides user settings.
| |||||||||||
Set whether or not the
RingModeSettings should override default user values
| |||||||||||
Set the default value for the
RingModeSettings
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Construct a RingModeSettings
with a default state of #RING_MODE_NORMAL.
Construct a RingModeSettings
with a default value and whether or not it should
override user settings.
Parameters | |
---|---|
value |
String : ex: RING_MODE_VIBRATE |
override |
boolean : whether or not the setting should override user settings
|
Get the default value for the RingModeSettings
Returns | |
---|---|
String |
integer value corresponding with its type |
Check whether or not the RingModeSettings
overrides user settings.
Returns | |
---|---|
boolean |
true if override |
Set whether or not the RingModeSettings
should override default user values
Parameters | |
---|---|
override |
boolean : boolean override
|
Set the default value for the RingModeSettings
Parameters | |
---|---|
value |
String : ex: RING_MODE_VIBRATE
|