PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
alerts_preferences.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "alerts_private.h"

Enumerations

enum  FirstUseSource { FirstUseSourceManualDNDActionMenu = 0 , FirstUseSourceManualDNDSettingsMenu , FirstUseSourceSmartDND , FirstUseSourceDismiss }
 "First use" dialogs whose completion is remembered. More...
 
enum  MuteBitfield { MuteBitfield_None = 0b00000000 , MuteBitfield_Always = 0b01111111 , MuteBitfield_Weekdays = 0b00111110 , MuteBitfield_Weekends = 0b01000001 }
 Days of the week on which an app is muted. More...
 
enum  DndNotificationMode { DndNotificationModeHide = 0 , DndNotificationModeShow = 1 }
 Whether notifications are displayed while Do Not Disturb is active. More...
 

Functions

void alerts_preferences_dnd_set_show_notifications (DndNotificationMode mode)
 Set whether notifications are displayed while DND is active.
 
DndNotificationMode alerts_preferences_dnd_get_show_notifications (void)
 Get whether notifications are displayed while DND is active.
 
void alerts_preferences_dnd_set_motion_backlight (bool enable)
 Set whether motion turns on the backlight while DND is active.
 
bool alerts_preferences_dnd_get_motion_backlight (void)
 Get whether motion turns on the backlight while DND is active.
 
void alerts_preferences_dnd_set_touch_backlight (bool enable)
 Set whether tap and double tap gestures turn on the backlight while DND is active.
 
bool alerts_preferences_dnd_get_touch_backlight (void)
 Get whether tap and double tap gestures turn on the backlight while DND is active.
 
void alerts_preferences_dnd_set_mute_speaker (bool enable)
 Set whether the speaker is muted while DND is active.
 
bool alerts_preferences_dnd_get_mute_speaker (void)
 Get whether the speaker is muted while DND is active.
 
void alerts_preferences_dnd_set_auto_dismiss (bool enable)
 Set whether notifications auto-dismiss while DND is active.
 
bool alerts_preferences_dnd_get_auto_dismiss (void)
 Get whether notifications auto-dismiss while DND is active.
 
void alerts_preferences_set_speaker_muted (bool muted)
 Set the always-on speaker mute, which silences the speaker regardless of DND.
 
bool alerts_preferences_get_speaker_muted (void)
 Get the always-on speaker mute.
 
void alerts_preferences_set_speaker_volume (uint8_t volume)
 Set the system-wide speaker volume cap.
 
uint8_t alerts_preferences_get_speaker_volume (void)
 Get the system-wide speaker volume cap.
 
bool alerts_preferences_check_and_set_first_use_complete (FirstUseSource source)
 Check whether a "first use" dialog has been shown, and mark it as shown.