Notification Builder

Defined in namespace Scandit.DataCapture.Core.UI.Notification

NotificationBuilder
class NotificationBuilder : IDisposable

Added in version 8.5.0

Use this object to construct instances of NotificationConfiguration.

NotificationBuilder()
NotificationBuilder(string text, string tag)

Added in version 8.5.0

Constructs a new notification builder. Text is the message that will be displayed in the notification. Tag is a string used to identify the notification.

WithIcon()
NotificationBuilder WithIcon(ScanditIcon icon)

Added in version 8.5.0

Sets the icon that will be displayed in the notification.

WithTextColor()
NotificationBuilder WithTextColor(Color textColor)

Added in version 8.5.0

Sets the text color of the notification.

WithBackgroundColor()
NotificationBuilder WithBackgroundColor(Color backgroundColor)

Added in version 8.5.0

Sets the background color of the notification.

WithSwipeToDismiss()
NotificationBuilder WithSwipeToDismiss(bool swipeToDismiss)

Added in version 8.5.0

Sets whether the notification can be dismissed by swiping.

WithNotificationStyle()
NotificationBuilder WithNotificationStyle(NotificationStyle notificationStyle)

Added in version 8.5.0

Sets the style of the notification. This will override other settings like text color and background color.

Build()
NotificationConfiguration Build()

Added in version 8.5.0

Builds a NotificationConfiguration object. Can be presented using the INotificationPresenter.