www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Controller.SceneController.prepareTransition(transitionType, isPop, transitionType, isPop)

Mojo.Controller.SceneController.prepareTransition(transitionType, isPop, transitionType, isPop)

Creates a Transition object that can be used to run a transition within the scene. On creation, events to the scene are frozen and a snapshot of the scene's window is taken. Any processing to change the scene's state should be done prior to calling run() on the Mojo.Transition object. After run() is called, events will once again behave as normal.

Argument Type Description
transitionType String The type of transition to run.  Optional.  Transition types include: Mojo.Transition.none, Mojo.Transition.zoomface, Mojo.Transition.crossFade, Mojo.Transition.defaultTransition
isPop Boolean True if the current scene is being popped.

Example usage:

    var transition = this.controller.prepareTransition(Mojo.Transition.crossFade, false);
// Code setting up the scene's new state goes here
transition.run();

 

 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)