Class MainToolbarKt
-
- All Implemented Interfaces:
public final class MainToolbarKt
-
-
Method Summary
Modifier and Type Method Description final static Unit
MainToolbar(Modifier modifier, DocumentState documentState, UiColorScheme colorScheme, Function1<String, Unit> customTitle, Function1<Color, Unit> navigationIcon, Function2<RowScope, Color, Unit> actions, Function1<Integer, Unit> onHeightChanged)
Composable that displays the Main tool bar for DocumentView. -
-
Method Detail
-
MainToolbar
@Composable() final static Unit MainToolbar(Modifier modifier, DocumentState documentState, UiColorScheme colorScheme, Function1<String, Unit> customTitle, Function1<Color, Unit> navigationIcon, Function2<RowScope, Color, Unit> actions, Function1<Integer, Unit> onHeightChanged)
Composable that displays the Main tool bar for DocumentView.
- Parameters:
modifier
- The Modifier to be applied to the layout.documentState
- The DocumentState describing the document to be shown.colorScheme
- Provides customised Material themes to Composables can be used as val colors = getPdfColors() colorScheme = colors.copy(mainToolbar = colors.mainToolbar.copy(backgroundColor = Color.customTitle
- The composable scope for customisable title view.navigationIcon
- The composable scope for customisable navigation icon.actions
- The actions displayed at the end of the existing menu items.
-
-
-
-