PDFView Events
The PDFView widget has the following events associated with it:
This event is invoked for every widget when the widget position and dimensions are computed.
Syntax
doLayout()
Read/Write
Read + Write
Remarks
This event is invoked for all the widgets placed inside flex containers. This event is invoked in the order in which the widgets are added to the widget hierarchy and expect the frame property of the widget is calculated and available for use within this event.
This event is used to set the layout properties of child widgets in the relation to self and peer widgets whose layout is not yet performed.
The number of times this event invoked may vary per platform. It is not recommended to write business logic assuming that this function is invoked only once when there is a change in positional or dimensional properties. This event will not trigger when transformations are applied though widget is moved or scaled or rotated from its original location.
Example
Platform Availability
- iOS
This event is invoked by the platform when a new document is loaded into the PDFView.
Syntax
onDocumentChanged ()
Read/Write
Read + Write
Example
Platform Availability
- iOS
This event is invoked by the platform when the page changes or when the user navigates to the previous or next page of the document.
Syntax
onPageChanged ()
Read/Write
Read + Write
Example
Platform Availability
- iOS