NotificationInboxAccessibilityLabels class

Host-provided accessibility labels for the Visual Notification Inbox UI.

The SDK ships no text of its own in the visual inbox — the empty state is an icon and the loading state is a spinner — so accessibility labels are the one place a string is still needed. Because the SDK cannot know your app's language, every label is optional and null by default, and an omitted label leaves that element unlabeled rather than falling back to English. Pass strings already localized for the user's language.

CustomerIO.initialize(
  config: CustomerIOConfig(
    cdpApiKey: '...',
    inAppConfig: InAppConfig(
      siteId: '...',
      accessibilityLabels: NotificationInboxAccessibilityLabels(
        bell: context.l10n.inboxBell,
        bellWithUnreadCount: context.l10n.inboxUnread, // "{count} olasta aviseringar"
        loadingIndicator: context.l10n.inboxLoading,
        emptyState: context.l10n.inboxEmpty,
      ),
    ),
  ),
);

Constructors

NotificationInboxAccessibilityLabels({String? bell, String? bellWithUnreadCount, String? loadingIndicator, String? emptyState})
const

Properties

bell → String?
Label for the inbox bell button. Also used when the bell shows an unread badge but bellWithUnreadCount is not provided. null → the bell is announced as an unnamed button (it stays focusable and tappable; hiding it would leave screen reader users no way in).
final
bellWithUnreadCount → String?
Label for the bell while it shows an unread badge. Include countPlaceholder where the number of unread messages should appear; it is substituted natively at render time. null → falls back to bell.
final
emptyState → String?
Label announced for the empty-state icon. null → the icon is treated as decorative.
final
hashCode → int
The hash code for this object.
no setterinherited
loadingIndicator → String?
Label announced for the loading spinner.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Only the labels the host actually set are sent, so an unset label stays unset natively rather than arriving as an explicit null the parsers would have to distinguish.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

countPlaceholder → const String
Replaced with the unread count inside bellWithUnreadCount.