InboxCarouselSlide

class InboxCarouselSlide(val imageUrl: String, val title: String?, val url: String?)

A single slide inside a carousel inbox card, mirroring the iOS PushwooshInboxCarouselSlide contract.

Unlike the other card kinds — which render the message's single image — a carousel shows several images from one message. Those slides cannot live in the standard message fields, so they arrive in actionParams["carousel"] (at the root, inside u as a dict, or inside u as a JSON-encoded string) and are decoded by decode:

{ "carousel": [
{ "image": "https://…/1.jpg", "title": "New in", "url": "myapp://p/1" },
{ "image": "https://…/2.jpg", "title": "On sale", "url": "myapp://p/2" }
] }

Constructors

Link copied to clipboard
constructor(imageUrl: String, title: String?, url: String?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

remote image of the slide; a slide without one is dropped

Link copied to clipboard

optional caption drawn over the bottom of the slide

Link copied to clipboard
val url: String?

optional destination opened on tap; null falls through to the message's default row action