-
public interface DocumentLoadListenerInterface for listening to document load events.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonDocumentLoadingStart()Called when the PDF loading process starts. abstract UnitonDocumentLoaded(Integer totalPages)Called when the PDF is loaded. abstract UnitonDocumentLoadError(Throwable error)Called if an error occurred while opening the PDF. -
-
Method Detail
-
onDocumentLoadingStart
@MainThread() abstract Unit onDocumentLoadingStart()
Called when the PDF loading process starts.
-
onDocumentLoaded
@MainThread() abstract Unit onDocumentLoaded(Integer totalPages)
Called when the PDF is loaded.
- Parameters:
totalPages- The total number of pages in the PDF document.
-
onDocumentLoadError
@MainThread() abstract Unit onDocumentLoadError(Throwable error)
Called if an error occurred while opening the PDF.
- Parameters:
error- The exception that occurred.
-
-
-
-