Notification Builder

Defined in framework ScanditCaptureCore

NotificationBuilder
open class NotificationBuilder : NSObject

Added in version 7.5.0

Use this object to construct instances of NotificationConfiguration.

init(text:tag:)
init(text: String, tag: String)

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(_:)
open func withIcon(_ icon: ScanditIcon) -> Self

Added in version 7.5.0

Sets the icon that will be displayed in the notification.

withTextColor(_:)
open func withTextColor(_ textColor: UIColor) -> Self

Added in version 7.5.0

Sets the text color of the notification.

withBackgroundColor(_:)
open func withBackgroundColor(_ backgroundColor: UIColor) -> Self

Added in version 7.5.0

Sets the background color of the notification.

withSwipeToDismiss(_:)
open func withSwipeToDismiss(_ swipeToDismiss: Bool) -> Self

Added in version 7.5.0

Sets whether the notification can be dismissed by swiping.

withNotificationStyle(_:)
open func withNotificationStyle(_ notificationStyle: NotificationStyle) -> Self

Added in version 7.5.0

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

build()
open func build() -> NotificationConfiguration

Added in version 7.5.0

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