NativePageSwitcher


Purpose

This API consists of the NativePageSwitcher object that enables native transitions between pages of hybrid applications.

When you click a link to initiate navigation within 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.

You can access the object by using the launchbox.NativePageSwitcher reference.

Module

This object belongs to the Hybrid product module.

Constants

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.Flip Denotes that an old web view rotates to reveal the new one in a manner defined in the parameters.
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.Cube Denotes that an old web view rolls to reveal the new 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.

Methods

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 startSwitching method was made with the shouldWait parameter set to "true".

cancelSwitching undefined

Cancels the transition, which was initiated by a call to the startSwitching method was made with the shouldWait parameter set to "true".

Related topics

Public API reference
Legal notice | Copyright © 2019 and Confidential to Pegasystems Inc. All rights reserved
Pega Community | Feedback
Advanced...