onToolbarItemClick

abstract fun onToolbarItemClick(@IdRes id: Int): Boolean

Called when a toolbar item is tapped.

Return

true if the click was consumed, false to let the SDK handle it.

Parameters

id

the tapped item's @IdRes id (a default R.id.pspdf__menu_option_* id, or the id of a custom item supplied through ToolbarItemsProvider).