Foxit PDF RDK

Public Member Functions | List of all members
FoxitPDFViewCtrl.IPageContainerEventListener Class Reference

## Public Member Functions
| onAreaChange (oldValue, newValue)
| onRotatedDidLayout (oldValue, newValue)
| onRotatedWillLayout (oldValue, newValue)
| onScreenRotated (orientation)

## Detailed Description

A set of methods for adapting the contents of your view to size and trait changes.

## Member Function Documentation

## ◆ onAreaChange()

FoxitPDFViewCtrl.IPageContainerEventListener.onAreaChange | ( | oldValue | ,
|  | newValue |
| ) |  |

This callback is triggered when the size or position of page container change finished.

Parameters

  { | function } event - event callback.

## ◆ onRotatedDidLayout()

FoxitPDFViewCtrl.IPageContainerEventListener.onRotatedDidLayout | ( | oldValue | ,
|  | newValue |
| ) |  |

This callback is triggered when the page container completes its layout.

Parameters

  { | function } event - event callback.

## ◆ onRotatedWillLayout()

FoxitPDFViewCtrl.IPageContainerEventListener.onRotatedWillLayout | ( | oldValue | ,
|  | newValue |
| ) |  |

Trigger this callback when the page container is about to be laid out.

Parameters

  { | function } event - event callback.

## ◆ onScreenRotated()

FoxitPDFViewCtrl.IPageContainerEventListener.onScreenRotated | ( | orientation |  | ) |

Triggered when rotation.

Parameters

  orientation | The UI interface orientation.