MainToolbar

fun MainToolbar(modifier: Modifier = Modifier, documentState: DocumentState, title: @Composable (String) -> Unit? = null, navigationIcon: @Composable (tintColor: Color) -> Unit = {}, actions: @Composable RowScope.(tintColor: Color) -> Unit = {})

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.

title

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.

Make sure to disable the default toolbar via PdfActivityConfiguration.Builder.disableDefaultToolbar before adding this.