Pebble.Companion.Notifications
Phone notification status helpers for companion apps.
Types
NotificationStatus
type alias NotificationStatus =
{ quietHours : Bool
, notificationsEnabled : Bool
}Notification settings reported by the companion bridge.
Commands
current
current : (Result String NotificationStatus -> msg) -> Cmd msgRequest the current notification status.
setup
setup : Cmd msgRegister this platform handler with the companion bridge.
Subscriptions
onNotificationStatus
onNotificationStatus : (Result String NotificationStatus -> msg) -> Sub msgReceive pushed notification status updates from the companion bridge.
Registering this subscription also tells the bridge to send notification updates.