AlhPdfViewController class

Calling native methods that can change the current settings of the PDF.

Constructors

AlhPdfViewController({required int id, required RenderCallback? onRender, required PageChangedCallback? onPageChanged, required ErrorCallback? onError, required PageErrorCallback? onPageError, required ZoomChangedCallback? onZoomChanged, required LinkHandleCallback? onLinkHandle})

Properties

hashCode int
The hash code for this object.
no setterinherited
onError ErrorCallback?
final
onLinkHandle LinkHandleCallback?
final
onPageChanged PageChangedCallback?
final
onPageError PageErrorCallback?
final
onRender RenderCallback?
final
onZoomChanged ZoomChangedCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCurrentPage() Future<int>
Returns the current page that is shown.
getPageCount() Future<int>
Returns the number of pages for the PDF.
getPageSize({required int page}) Future<Size>
Returns the size of the given page index.
getZoom() Future<double>
Returns the current zoom value.
goToNextPage({bool withAnimation = true}) Future<bool>
Goes to the next page.
goToPreviousPage({bool withAnimation = true}) Future<bool>
Goes to the previous page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetZoom() Future<void>
Setting the scale factor to the default zoom factor.
setPage({required int page, bool withAnimation = true}) Future<bool>
Jumping to the given page.
setZoom({required double zoom}) Future<void>
Zooming to the given zoom.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited