CalloutNotification

fun CalloutNotification(body: AnnotatedString, status: NotificationStatus, modifier: Modifier = Modifier, title: String = "", highContrast: Boolean = false)

Callout notification

Callouts are used to highlight important information contextually within the contents of the page, and cannot be dismissed. Unlike other notification components they are not triggered by the user or system, rather they load with the contents of the page. They do not act as a feedback mechanism, they are persistent, and always present on the screen to provide necessary information to the user.

(From Notification documentation)

Parameters

body

The body of the notification. This can be a simple string or a more complex text with formatting, allowing for links, bold text, etc.

status

The status of the notification, which determines its color and icon used.

modifier

The modifier to apply to the component.

title

The title of the notification.

highContrast

Whether to use high contrast colors.


fun CalloutNotification(body: String, status: NotificationStatus, modifier: Modifier = Modifier, title: String = "", highContrast: Boolean = false)

Callout notification

Callouts are used to highlight important information contextually within the contents of the page, and cannot be dismissed. Unlike other notification components they are not triggered by the user or system, rather they load with the contents of the page. They do not act as a feedback mechanism, they are persistent, and always present on the screen to provide necessary information to the user.

(From Notification documentation)

Parameters

body

The body of the notification.

status

The status of the notification, which determines its color and icon used.

modifier

The modifier to apply to the component.

title

The title of the notification.

highContrast

Whether to use high contrast colors.