AirshipEmbeddedCarousel
A container that displays all embedded content for the given embeddedId in a swipeable carousel.
When multiple pieces of embedded content share the same ID, each is shown as a separate page.
Parameters
The embedded ID.
The modifier to be applied to the layout.
Controls which instances are paged, and in what order. AirshipEmbeddedSelection.ByComparator sorts by its comparator, AirshipEmbeddedSelection.ByInstanceId pages in the order its IDs are listed, showing only those, and AirshipEmbeddedSelection.ByAi pages in the order the model ranked, showing the placeholder rather than an unranked order while it decides; AirshipEmbeddedSelection.Priority preserves arrival order, matching AirshipEmbeddedViewGroup.
Optional AirshipEmbeddedFilter deciding which instances are eligible. Applied before selection, so an excluded instance never becomes a page. Remember the lambda: an unstable one re-subscribes on every recomposition.
Optional overlay composable for page indicators. Receives the PagerState and page count. Use AirshipEmbeddedCarouselDefaults.dotsIndicator for a simple default.
Optional composable for a "previous page" button, positioned at Alignment.CenterStart. Use AirshipEmbeddedCarouselDefaults.previousArrow for a simple accessible default.
Optional composable for a "next page" button, positioned at Alignment.CenterEnd. Use AirshipEmbeddedCarouselDefaults.nextArrow for a simple accessible default.
Optional composable displayed when no embedded content is available.
A container that displays embedded carousel content for the embeddedId defined on the given AirshipEmbeddedCarouselState.
This composable may be useful when access to the carousel state is needed outside of the AirshipEmbeddedCarousel composable, e.g. to observe AirshipEmbeddedCarouselState.isAvailable.
Parameters
The AirshipEmbeddedCarouselState to be used by this carousel.
The modifier to be applied to the layout.
Optional overlay composable for page indicators.
Optional composable for a "previous page" button.
Optional composable for a "next page" button.
Optional composable displayed when no embedded content is available.