NotificationPrefs

Reactive interface for notification preferences.

Properties

Link copied to clipboard
abstract val geofenceAlertOptIns: StateFlow<Set<Int>>

Waypoint ids of foreign (not locally-created) geofences the user has opted in to receiving crossing alerts for. Geofences are mesh-broadcast, so by default only the creator is alerted; this is the per-geofence opt-in.

Link copied to clipboard
abstract val lowBatteryEnabled: StateFlow<Boolean>
Link copied to clipboard
abstract val messagesEnabled: StateFlow<Boolean>
Link copied to clipboard
abstract val nodeEventsAutoDisabledForEvent: StateFlow<Boolean>
Link copied to clipboard
abstract val nodeEventsEnabled: StateFlow<Boolean>

Functions

Link copied to clipboard
abstract fun setGeofenceAlertOptIn(waypointId: Int, enabled: Boolean)
Link copied to clipboard
abstract fun setLowBatteryEnabled(enabled: Boolean)
Link copied to clipboard
abstract fun setMessagesEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
abstract fun setNodeEventsEnabled(enabled: Boolean)