Package-level declarations

Types

Link copied to clipboard
data class BlockInfo(val page: Int, val item: Int)
Link copied to clipboard
sealed class Event

The events that can be emitted by the FlyerView.

Link copied to clipboard
data class FlyerStyle(val masthead: MastheadStyle = MastheadStyle.Default, val searchBar: SearchBarStyle = SearchBarStyle.Default, val pageIndicator: PageIndicatorStyle = PageIndicatorStyle.Default)
Link copied to clipboard
data class MastheadStyle(val logo: Any? = R.drawable.tc_logo, val isDisabled: Boolean = false)
Link copied to clipboard
data class PageIndicatorStyle(val isDisabled: Boolean = false)
Link copied to clipboard
data class SearchBarStyle(val searchTextField: @Composable (String, Modifier, (String) -> Unit) -> Unit = { query, modifier, onQueryChange -> DefaultSearchTextField( query, modifier, onQueryChange ) }, val filterToggleStyle: @Composable (Boolean, Boolean, Modifier, () -> Unit, () -> Unit) -> Unit = { showFilter, hasFilters, modifier, onClearFiltersToggle, onToggle -> DefaultFilterToggle( showFilter, hasFilters, modifier, onClearFiltersToggle, onToggle ) }, val categoryToggleStyle: @Composable (Boolean, Boolean, () -> Unit, () -> Unit) -> Unit = { isActive, hasSelectedCategories, onClear, onToggle -> DefaultCategoryToggle( isActive, hasSelectedCategories, onClear, onToggle ) }, val discountToggleStyle: @Composable (Boolean, Boolean, () -> Unit, () -> Unit) -> Unit = { isActive, hasSelectedDiscount, onClear, onToggle -> DefaultDiscountToggle( isActive, hasSelectedDiscount, onClear, onToggle ) }, val resetButtonStyle: @Composable (Modifier) -> Unit = { modifier -> DefaultResetButton(modifier) }, val isDisabled: Boolean = false)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun DefaultCategoryToggle(isActive: Boolean, hasSelectedCategories: Boolean, onClear: () -> Unit, onToggle: () -> Unit)
Link copied to clipboard
fun DefaultDiscountToggle(isActive: Boolean, hasSelectedDiscount: Boolean, onClear: () -> Unit, onToggle: () -> Unit)
Link copied to clipboard
fun DefaultFilterToggle(showFilters: Boolean, hasFilters: Boolean, modifier: Modifier, onClearFiltersToggle: () -> Unit, onToggle: () -> Unit)
Link copied to clipboard
Link copied to clipboard
fun DefaultSearchTextField(query: String, modifier: Modifier, onQueryChange: (String) -> Unit)
Link copied to clipboard
fun FlyerView(digitalFlyer: DigitalFlyer, attributes: Publication.Attributes, orientation: Orientation, onEvent: (Event?) -> Unit? = null)
Link copied to clipboard
fun FlyerViewUI(digitalFlyer: DigitalFlyer, attributes: Publication.Attributes, orientation: Orientation = Orientation.VERTICAL, flyerStyle: FlyerStyle = FlyerStyle.Default, onEvent: (Event?) -> Unit? = null)
Link copied to clipboard
fun InspectionView(block: BlockInfo, onClose: () -> Unit, modifier: Modifier = Modifier)