Builder
A builder used to create a StockNotificationPanel. The created panel is configured by the properties of this builder.
Properties
Link copied to clipboard
The FrontendContext for a notification panel to communicate with the rest of the system.
Link copied to clipboard
var optionViewModels: LiveData<List<NotificationViewModel.OptionViewModel>>
Content copied to clipboard
Link copied to clipboard
The NotificationPanel.Priority of a notification panel.
Functions
Link copied to clipboard
Link copied to clipboard
fun setOptionViewModels(viewModels: List<NotificationViewModel.OptionViewModel>)
Content copied to clipboard
Set optionViewModels to the given viewModels.
Link copied to clipboard
Set primaryActionButtonViewModel to the given viewModel.
Link copied to clipboard
Set secondaryActionButtonViewModel to the given viewModel.