| java.lang.Object | |
| ↳ | cyanogenmod.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.
| value | ex: RING_MODE_VIBRATE |
|---|---|
| override | whether or not the setting should override user settings |
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
| override | boolean override |
|---|
Set the default value for the RingModeSettings
| value | ex: RING_MODE_VIBRATE
|
|---|