Default strength of all vibrations.
More...
Default strength of all vibrations.
◆ DEFAULT_VIBE_INTENSITY
Intensity used when the user has not chosen one.
◆ VibeIntensity
Vibration intensity.
| Enumerator |
|---|
| VibeIntensityLow | Low, 40 % strength.
|
| VibeIntensityMedium | Medium, 60 % strength.
|
| VibeIntensityHigh | High, full strength.
|
| VibeIntensityNum | Number of intensities.
|
◆ get_strength_for_intensity()
Get the strength of an intensity.
- Parameters
-
- Returns
- Percentage of the maximum strength, 0-100. Unknown intensities map to 100.
◆ vibe_intensity_cycle_next()
Get the next intensity in the cycle, wrapping around.
- Parameters
-
| intensity | Current intensity. |
- Returns
- Next intensity.
◆ vibe_intensity_get()
Get the intensity stored in the alert preferences.
- Returns
- Current intensity.
◆ vibe_intensity_get_string_for_intensity()
| const char * vibe_intensity_get_string_for_intensity |
( |
VibeIntensity |
intensity | ) |
|
Get the display name of an intensity.
- Parameters
-
- Returns
- Untranslated name, to be passed through i18n, or NULL if
intensity is invalid.
◆ vibe_intensity_init()
| void vibe_intensity_init |
( |
void |
| ) |
|
Apply the intensity stored in the alert preferences.
◆ vibe_intensity_set()
Set the default strength of all vibrations (not just notifications).
Does not persist the intensity.
- Parameters
-
| intensity | Intensity to apply. |