rememberAirshipEmbeddedCarouselState

fun rememberAirshipEmbeddedCarouselState(embeddedId: String, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null): AirshipEmbeddedCarouselState(source)

Creates and remembers an AirshipEmbeddedCarouselState for the given embeddedId.

Parameters

embeddedId

The embedded ID.

selection

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.

filterInstances

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.