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})

Properties

hashCode int
The hash code for this object.
no setterinherited
onError ErrorCallback?
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.
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}) Future<void>
Jumping to the page without any animation.
setPageWithAnimation({required int page}) Future<void>
Jumping to page with an animation.
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