closeWindowParams

Dictionary of options for the Titanium.UI.Window.close method.

  • 3.2.0

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

closeWindowParams
activityEnterAnimation : Number

Animation resource to use for the incoming activity.

Animation resource to use for the incoming activity.

This value will be ignored if animated is set to false. See "Heavyweight Window Transitions in Android" in the main description of Titanium.UI.Window for more information.

closeWindowParams
activityExitAnimation : Number

Animation resource to use for the outgoing activity (heavyweight window).

Animation resource to use for the outgoing activity (heavyweight window).

This value will be ignored if animated is set to false. See "Heavyweight Window Transitions in Android" in the main description of Titanium.UI.Window for more information.

Examples

Fading out a Window

win2.close({
    activityEnterAnimation: Ti.Android.R.anim.fade_in,
    activityExitAnimation: Ti.Android.R.anim.fade_out
});
closeWindowParams
: Boolean
Determines whether to use an animated effect when the window is closed. ...

Determines whether to use an animated effect when the window is closed.

This property supports animated transitions on heavyweight windows except for modal windows (modal:true). See "Android Heavyweight and Lightweight Windows" in the main description of Titanium.UI.Window for more information. The transitions are on by default, but you can disable this behavior by setting this value to false.

Default: true