Built-in vibe scores, their names and the alerts they can be used for.
More...
Built-in vibe scores, their names and the alerts they can be used for.
The catalog is defined in vibes.def. Score IDs are persisted in preferences, so they are never reused.
◆ DEFAULT_VIBE_SCORE_ALARMS
| #define DEFAULT_VIBE_SCORE_ALARMS (VibeScoreId_Reveille) |
Default score for alarms.
◆ DEFAULT_VIBE_SCORE_HOURLY
| #define DEFAULT_VIBE_SCORE_HOURLY (VibeScoreId_Disabled) |
Default score for the hourly vibration.
◆ DEFAULT_VIBE_SCORE_INCOMING_CALLS
| #define DEFAULT_VIBE_SCORE_INCOMING_CALLS (VibeScoreId_Pulse) |
Default score for incoming calls.
◆ DEFAULT_VIBE_SCORE_NOTIFS
| #define DEFAULT_VIBE_SCORE_NOTIFS (VibeScoreId_NudgeNudge) |
Default score for notifications; VibeScoreId_StandardShortPulseHigh on Asterix.
◆ DEFAULT_VIBE_SCORE_ON_DISCONNECT
| #define DEFAULT_VIBE_SCORE_ON_DISCONNECT (VibeScoreId_Disabled) |
Default score for phone disconnection.
◆ VibeScoreId
ID of a built-in vibe score.
Generated from vibes.def: besides VibeScoreId_Invalid, each entry defines a value named after the score, e.g. VibeScoreId_Disabled or VibeScoreId_Pulse.
| Enumerator |
|---|
| VibeScoreId_Invalid | Invalid ID, never used by a score.
|
◆ vibe_score_info_cycle_next()
Get the next vibe score available to an alert, in catalog order.
Wraps around at the end of the catalog.
- Parameters
-
- Returns
- Next score, or
curr_id if there is no other.
◆ vibe_score_info_get_name()
| const char * vibe_score_info_get_name |
( |
VibeScoreId |
id | ) |
|
Get the display name of a vibe score.
- Parameters
-
- Returns
- Name (untranslated where marked for translation), or "" if unknown.
◆ vibe_score_info_get_resource_id()
| uint32_t vibe_score_info_get_resource_id |
( |
VibeScoreId |
id | ) |
|
Get the resource of a vibe score.
- Parameters
-
- Returns
- System resource ID of the score,
RESOURCE_ID_INVALID if unknown or for VibeScoreId_Disabled.
◆ vibe_score_info_is_valid()
Check whether a vibe score ID can be used.
- Parameters
-
- Returns
- true if the score exists and has a resource, or is
VibeScoreId_Disabled.