Notification

Defined under the namespace Scandit.Datacapture.Core.Ui

NotificationConfiguration
class NotificationConfiguration

Added in version 7.5.0

This represents a notification that can be displayed to the user. Build it using the NotificationBuilder and present it using the NotificationPresenter.

constructor(message, tag, style, icon, textColor, backgroundColor)
constructor(message: string,
        tag: string,
        style?: NotificationStyle,
        icon?: ScanditIcon,
        textColor?: Color,
        backgroundColor?: Color)

Added in version 7.5.0

Constructs a new notification configuration.

tag
get tag(): string

Added in version 7.5.0

The tag of the notification.

message
get message(): string

Added in version 7.5.0

The message text that will be displayed in the notification.

style
get style(): NotificationStyle | null

Added in version 7.5.0

The style of the notification. This determines the default appearance including colors and icons.

icon
get icon(): ScanditIcon | null

Added in version 7.5.0

The custom icon to display in the notification. If provided, this overrides the default icon from the style.

textColor
get textColor(): Color

Added in version 7.5.0

The color of the text in the notification.

backgroundColor
get backgroundColor(): Color

Added in version 7.5.0

The background color of the notification.