Skip to main content
Version: 5.5

Toolbar

This template allows you to customize the toolbar at the top of the catalog page.

class MyCustomCatalogSuccessToolbarImp: CatalogSuccessToolbar {

@Composable
override fun Content(params: CatalogSuccessToolbarParameters) {
// Your custom design here
}
}

Params

data class CatalogSuccessToolbarParameters(
val scrollOffset: IntOffset, // scroll state of main page
val elementHeight: Dp, // current toolbar height
val elementMinHeight: Dp, // min height for toolbar
val elementMaxHeight: Dp, // max height for toolbar
val content: CatalogContent, // which is current page name
val currentPackageTitle: String? = null, // not null if you are in a package result page
val currentSearchString: String? = null, // not null if you are in a search result page
val currentSubtitle: String? = null, / not null if you are in a package result page
val filterAreEnable: Boolean, // show or hide filter button
val openFilter: () -> Unit, // action to open filter page
val openSearch: () -> Unit, // action to open search page
val goToFavorite: () -> Unit, // action to open favorite page
val openPreferences: () -> Unit, // action to open preference page
val getActiveFilterCount: () -> Int, // return number of actives filter
val getActivePreferenceCount: () -> Int, // return number of actives preference
val goToBack: () -> Unit // navigate back
)

Resources

NameResource IDValue FrValue Eng
favoriteTitlecom_miam_catalog_filter_search_placeholderRechercherSearch
preferencesTitlecom_miam_catalog_filter_search_placeholderRechercherSearch
titlecom_miam_catalog_filter_search_placeholderRechercherSearch