NotificationDisplayServiceFrontendCoordinationRule

class NotificationDisplayServiceFrontendCoordinationRule(notificationPanelData: LiveData<NotificationPanelData>) : FrontendCoordinationRule

A rule that keeps the information in NotificationDisplayService up-to-date with notificationPanelData.

Parameters

notificationPanelData

The NotificationPanelData to observe in order to update NotificationDisplayService.

Constructors

fun NotificationDisplayServiceFrontendCoordinationRule(panelRegistry: IviPanelRegistry)

A convenience constructor that extracts the default NotificationPanelData from the given panelRegistry.

fun NotificationDisplayServiceFrontendCoordinationRule(notificationPanelData: LiveData<NotificationPanelData>)

Functions

Link copied to clipboard
open override fun activate(    lifecycleOwner: LifecycleOwner,     iviServiceProvider: IviInstanceBoundIviServiceProvider,     frontends: LiveData<out Collection<Frontend>>)

Actives the rule within the scope of the given lifecycleOwner.