setOnToolbarMenuChangedListener

Sets a listener to be notified of toolbar menu changes. This allows customizing the main toolbar menu when using PdfUiFragment inside a plain AppCompatActivity.

Alternatively, the hosting Activity can implement OnToolbarMenuChangedListener and it will be auto-discovered when the fragment is attached.

Parameters

listener

OnToolbarMenuChangedListener that should be notified, or null to clear the listener.