Consists of the NativePageSwitcher object that enables native transitions between pages of hybrid applications.
When a link is clicked on to initiate navigation in a page, the screen does an animated
transition between an existing and a new screen. In single-page web applications, where no
navigation is performed, transitions need to be triggered manually, by means of the
startSwitching
and continueSwitching
methods.
The object can be accessed using the launchbox.NativePageSwitcher
reference.
Name | Description |
---|---|
launchbox.ui.transition.Type.Empty |
Denotes that no transition is applied. Used as a default transition when the
startSwitching() method is called. |
launchbox.ui.transition.Type.Cover | Denotes that a new web view covers the old one in a manner defined in the parameters. |
launchbox.ui.transition.Type.Reveal | Denotes that an old web view uncovers the new one in a manner defined in the parameters. |
launchbox.ui.transition.Direction.Up | Denotes that an animated web view slides up. |
launchbox.ui.transition.Direction.Down | Denotes that an animated web view slides down. |
launchbox.ui.transition.Direction.Left | Denotes that an animated web view slides to the left. |
launchbox.ui.transition.Direction.Right | Denotes that an animated web view slides to the right. |
Name | Return type | Description |
---|---|---|
setNextTransition | undefined |
Defines an animation for next transition in the current webview. |
startSwitching | undefined |
Manually initiates the animation. |
continueSwitching | undefined |
Initiates the transition, if the first call to the |
cancelSwitching | undefined |
Cancels the transition, which was initiated by a call to the
|