Main Toolbar
Composable that displays the Main tool bar for DocumentView.
Parameters
The Modifier to be applied to the layout.
The DocumentState describing the document to be shown.
Provides customised Material themes to Composables can be used as val colors = getPdfColors() colorScheme = colors.copy(mainToolbar = colors.mainToolbar.copy(backgroundColor = Color.Red)
The window insets to be applied to the layout.
The composable scope for customisable title view.
The composable scope for customisable navigation icon.
The actions displayed at the end of the existing menu items.
The actions displayed in the overflow menu.
The callback to be called when the height of the toolbar changes.
Make sure to disable the default toolbar via PdfActivityConfiguration.Builder.disableDefaultToolbar before adding this.