PdfViewPlatformController class abstract

Drives a single PDF view that a platform implementation has created.

One instance exists per created view. The app-facing PDFViewController wraps an instance of this and is what users of the plugin actually hold.

Implementers

Constructors

PdfViewPlatformController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Detaches from the native view and stops delivering callbacks.
getCurrentPage() Future<int?>
Returns the zero-based index of the page that is currently displayed.
getCurrentPageSize() Future<Size>
Returns the size, in points, of the page that is currently displayed.
getPageCount() Future<int?>
Returns the number of pages in the loaded document.
getPosition() Future<Offset>
Returns the current scroll offset of the document.
getScale() Future<double>
Returns the current zoom scale of the document.
getScreenshot(String fileName) Future<String>
Captures the currently visible page and writes it to fileName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<bool>
Reloads the current document and returns whether the reload succeeded.
setPage(int page) Future<bool?>
Jumps to the zero-based page and returns whether the jump succeeded.
setPosition(Offset position) Future<bool>
Scrolls the document to position and returns whether the native view accepted the new offset.
setScale(double scale) Future<bool>
Zooms the document to scale and returns whether the native view accepted the new scale.
setZoomLimits(double minZoom, double midZoom, double maxZoom) Future<bool>
Sets the minimum, middle and maximum zoom levels of the native view.
toString() String
A string representation of this object.
inherited
unlock(String password) Future<bool>
Reopens the current document with password and returns whether it is now unlocked.
updateCallbacks(PdfViewCallbacks callbacks) → void
Replaces the callbacks this controller dispatches native events to.
updateSettings(Map<String, dynamic> updates) Future<void>
Pushes the already-diffed updates to the native view.

Operators

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