Package-level declarations

Types

Link copied to clipboard

State holder for AirshipBannerHost content.

Link copied to clipboard

Default values used for AirshipEmbeddedView implementations.

Link copied to clipboard

State holder for AirshipEmbeddedViewGroup content.

Link copied to clipboard
class AirshipEmbeddedViewState(val embeddedId: String)

State holder for AirshipEmbeddedView content.

Link copied to clipboard

An embedded view item, containing the AirshipEmbeddedInfo and the content to display.

Functions

Link copied to clipboard
fun AirshipBannerHost(modifier: Modifier = Modifier)

A host container that displays Thomas banners.

A host container that displays Thomas banners, using the provided AirshipBannerHostState.

Link copied to clipboard
fun AirshipEmbeddedCarousel(state: AirshipEmbeddedCarouselState, modifier: Modifier = Modifier, indicator: @Composable BoxScope.(pagerState: PagerState, pageCount: Int) -> Unit? = null, previousArrow: @Composable (onClick: () -> Unit, enabled: Boolean) -> Unit? = null, nextArrow: @Composable (onClick: () -> Unit, enabled: Boolean) -> Unit? = null, placeholder: @Composable () -> Unit? = null)

A container that displays embedded carousel content for the embeddedId defined on the given AirshipEmbeddedCarouselState.

fun AirshipEmbeddedCarousel(embeddedId: String, modifier: Modifier = Modifier, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null, indicator: @Composable BoxScope.(pagerState: PagerState, pageCount: Int) -> Unit? = null, previousArrow: @Composable (onClick: () -> Unit, enabled: Boolean) -> Unit? = null, nextArrow: @Composable (onClick: () -> Unit, enabled: Boolean) -> Unit? = null, placeholder: @Composable () -> Unit? = null)

A container that displays all embedded content for the given embeddedId in a swipeable carousel.

Link copied to clipboard
fun AirshipEmbeddedView(state: AirshipEmbeddedViewState, modifier: Modifier = Modifier, contentAlignment: Alignment = AirshipEmbeddedViewDefaults.ContentAlignment, animatedContentTransform: ContentTransform = AirshipEmbeddedViewDefaults.NoContentTransform, parentWidthProvider: () -> Int? = null, parentHeightProvider: () -> Int? = null, placeholder: @Composable () -> Unit? = null)

A container that displays embedded content for the embeddedId defined on the given AirshipEmbeddedViewState instance.

fun AirshipEmbeddedView(embeddedId: String, modifier: Modifier = Modifier, comparator: Comparator<AirshipEmbeddedInfo>?, contentAlignment: Alignment = AirshipEmbeddedViewDefaults.ContentAlignment, parentWidthProvider: () -> Int? = null, parentHeightProvider: () -> Int? = null, animatedContentTransform: ContentTransform = AirshipEmbeddedViewDefaults.NoContentTransform, placeholder: @Composable () -> Unit? = null)
fun AirshipEmbeddedView(embeddedId: String, modifier: Modifier = Modifier, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null, contentAlignment: Alignment = AirshipEmbeddedViewDefaults.ContentAlignment, parentWidthProvider: () -> Int? = null, parentHeightProvider: () -> Int? = null, animatedContentTransform: ContentTransform = AirshipEmbeddedViewDefaults.NoContentTransform, placeholder: @Composable () -> Unit? = null)

A container that displays embedded content for the given embeddedId.

Link copied to clipboard

A container that allows all embedded content for the embeddedId defined on the given AirshipEmbeddedViewGroupState instance.

fun AirshipEmbeddedViewGroup(embeddedId: String, modifier: Modifier = Modifier, comparator: Comparator<AirshipEmbeddedInfo>?, content: @Composable BoxScope.(embeddedViews: List<EmbeddedViewItem>) -> Unit)
fun AirshipEmbeddedViewGroup(embeddedId: String, modifier: Modifier = Modifier, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null, content: @Composable BoxScope.(embeddedViews: List<EmbeddedViewItem>) -> Unit)

A container that allows all embedded content for the given embeddedId to be displayed using the provided content composable.

Link copied to clipboard

Creates an AirshipBannerHostState that can be used to manage the state of a banner host.

Link copied to clipboard
fun rememberAirshipEmbeddedCarouselState(embeddedId: String, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null): AirshipEmbeddedCarouselState

Creates and remembers an AirshipEmbeddedCarouselState for the given embeddedId.

Link copied to clipboard
fun rememberAirshipEmbeddedViewGroupState(embeddedId: String, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null): AirshipEmbeddedViewGroupState

Creates a AirshipEmbeddedViewGroupState that can be used to manage the state of an embedded view group.

Link copied to clipboard
fun rememberAirshipEmbeddedViewState(embeddedId: String, selection: AirshipEmbeddedSelection = AirshipEmbeddedSelection.Priority, filterInstances: AirshipEmbeddedFilter? = null): AirshipEmbeddedViewState

Creates a AirshipEmbeddedViewState that can be used to manage the state of an embedded view.