PushwooshInboxStyle

Properties

Link copied to clipboard

Accent of the inbox: the action icon of an unread message, the unread dot and the buttons of rich cards, the avatar background of an unread classic row, the pinned-message icon of a classic row, the swipe-to-delete background, the pull-to-refresh spinner and the first-load indicator. Defaults to the theme attribute inboxAccentColor, which resolves to the theme's colorAccent.

Link copied to clipboard

When true, messages are marked read once they are on screen: after the list loads and when a scroll settles.

Link copied to clipboard

Background of the inbox screen: the list, the message rows, the empty state and the error state, and below API 35 the navigation bar. Does not paint the toolbar. Defaults to the theme attribute inboxBackgroundColor, which PwInboxTheme sets to white; only a host theme that leaves that attribute undefined falls through to android.R.attr.windowBackground.

Link copied to clipboard

The toolbar navigation icon — the back arrow. Nothing else. With the key unset we apply no tint of our own, so the icon keeps the one AppCompat gives it from the activity theme's AppCompat colorControlNormal.

Link copied to clipboard

Background of the toolbar and the app bar, and below API 35 of the status bar. Independent of backgroundColor. Defaults to android.R.attr.colorPrimary — the platform attribute the toolbar layout points at, not AppCompat's colorPrimary.

Link copied to clipboard

The toolbar title. Nothing else. Defaults to white.

Link copied to clipboard

The bar text title.

Link copied to clipboard

The date of an unread message. Defaults to the theme attribute inboxDateColor, which resolves to the theme's android.R.attr.textColorSecondary.

Link copied to clipboard

Inbox message date format. By default used {@link com.pushwoosh.inbox.ui.model.customizing.formatter.InboxDateFormatter#DEFAULT_DATE_FORMAT} format

Link copied to clipboard

The date text size.

Link copied to clipboard

The icon shown near the message if there's no icon in push payload. If not specified, the app icon is used

Link copied to clipboard

The text color of unread messages. By default used Android android.R.attr.textColorSecondary

Link copied to clipboard

The description text size.

Link copied to clipboard

The divider color. By default used Android android.R.attr.listDivider

Link copied to clipboard
const val EMPTY_ANIMATION: Int

Use this property for clearing list animation {@link #listAnimationResource}

Link copied to clipboard

The color of cell highlight. By default used AppCompat R.attr.colorControlHighlight

Link copied to clipboard

The action icon (Deep Link, URL, etc.) of an unread message. Defaults to accentColor, and with neither key set to the theme attribute inboxImageTypeColor, which resolves to the theme's colorAccent.

Link copied to clipboard
Link copied to clipboard

Item appearing animation. Set {@link #EMPTY_ANIMATION} for clear animation

Link copied to clipboard

The image which is displayed if the list of inbox messages is empty

Link copied to clipboard
Link copied to clipboard

The text which is displayed if the list of inbox messages is empty

Link copied to clipboard

The image which is displayed if an error occurs and the list of inbox messages is empty

Link copied to clipboard
Link copied to clipboard

The error text which is displayed when an error occurs

Link copied to clipboard

The date of a read message. Defaults to the theme attribute inboxReadDateColor, which resolves to the theme's android.R.attr.textColorSecondary.

Link copied to clipboard

The text color of read messages. By default used Android android.R.attr.textColorSecondary

Link copied to clipboard

The action icon of a read message. Defaults to readDateColor, and with neither key set to the theme attribute inboxReadImageTypeColor, which resolves to the theme's android.R.attr.textColorSecondary.

Link copied to clipboard

The title color of read messages. By default used Android android.R.attr.textColorSecondary

Link copied to clipboard

When true, messages without an explicit displayType pick a rich card by the iOS-parity heuristic: image + title renders a captioned card, image alone renders a banner card. Off by default so existing inboxes keep their legacy row rendering; messages with an explicit displayType render as rich cards regardless of this flag.

Link copied to clipboard

Controls whether the InboxFragment displays its own toolbar.

Link copied to clipboard

The title color of unread messages. By default used Android android.R.attr.textColorPrimary

Link copied to clipboard

The title text size.

Functions

Link copied to clipboard

Resets every color key of this object back to its default, the three toolbar keys included, and puts showToolbar back to auto-detect. barTitle is not a color and is left alone.

Link copied to clipboard
fun setDateFont(typeface: Typeface)
Link copied to clipboard
Link copied to clipboard
fun setTitleFont(typeface: Typeface)