set Document Outline Provider
open fun setDocumentOutlineProvider(@Nullable outlineProvider: PdfOutlineView.DocumentOutlineProvider)
Sets DocumentOutlineProvider that should be used as a source of outline elements in the outline list instead of document outline.
Note that the DocumentOutlineProvider is not retained when restarting the Activity to prevent memory leaks. It's responsibility of the caller of this API to make sure that the custom outline provider is restored after the activity is restarted.
Parameters
outline Provider
Outline provider to use or null
to use default outline from the document.