setNextTransition


Purpose

Defines an animation for next transition in the current webview.

Signature

setNextTransition( transition )

Returns

This method does not return anything.

Parameters

Name Description Type Use
transition An object that carries transition parameters. object required

The setNextTransition method's transition object can be structured as follows:

 {
  type,
  duration,
  delay,
  direction
}

The table below lists all parameters included in the transition object.

Name Description Type Use
type Transition effect selected for this transition. Possible transition types are listed in the Constants table of the NativePageSwitcher article. identifier required
duration

Duration of the transition, in milliseconds.

integer required
delay

Time by which the transition will be delayed, in milliseconds. By default it is set to 0.

integer optional
direction Direction of the effect selected for this transition. Possible directions are listed in the Constants table of the NativePageSwitcher article. By default it is set to slide an animated webview to tle left. identifier optional

Related topics

NativePageSwitcher
Legal notice | Copyright © 2016 and Confidential to Pegasystems Inc. All rights reserved
PDN | Hybrid Container | Feedback
Advanced...