AirshipEmbeddedViewGroup

fun AirshipEmbeddedViewGroup(    embeddedId: String,     modifier: Modifier = Modifier,     comparator: Comparator<AirshipEmbeddedInfo>? = 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.

Parameters

embeddedId

The embedded ID.

modifier

The modifier to be applied to the layout.

comparator

Optional Comparator used to sort available embedded view content.

content

The Composable that will display the list of embedded view content.


fun AirshipEmbeddedViewGroup(    state: AirshipEmbeddedViewGroupState,     modifier: Modifier = Modifier,     content: @Composable BoxScope.(embeddedViews: List<EmbeddedViewItem>) -> Unit)

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

This composable may be useful when access to the embedded view group state is needed outside of the AirshipEmbeddedViewGroup composable, embedded view group state should be hoisted, and for advanced custom logic that depends on the availability of embedded view content.

When included inside of a lazy composable or scrolling list, state should be hoisted up, above the lazy composable or scrolling list, in order to ensure that the embedded view group state is maintained across recompositions.

Parameters

state

The AirshipEmbeddedViewGroupState to be used by this embedded view group.

modifier

The modifier to be applied to the layout.

content

The Composable that will display the list of embedded view content.