Notification Builder

Defined under the namespace Scandit.Datacapture.Core.Ui

NotificationBuilder
class NotificationBuilder

Added in version 7.5.0

Use this object to construct instances of NotificationConfiguration.

init(text, tag)
static init(text: string,
        tag: string): NotificationBuilder

Added in version 7.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(icon)
withIcon(icon: ScanditIcon): NotificationBuilder

Added in version 7.5.0

Sets the icon that will be displayed in the notification.

withTextColor(color)
withTextColor(color: Color): NotificationBuilder

Added in version 7.5.0

Sets the text color of the notification.

withBackgroundColor(color)
withBackgroundColor(color: Color): NotificationBuilder

Added in version 7.5.0

Sets the background color of the notification.

withNotificationStyle(style)
withNotificationStyle(style: NotificationStyle): NotificationBuilder

Added in version 7.5.0

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

build()
build(): NotificationConfiguration

Added in version 7.5.0

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