Module: flow

Members

(static) config

Properties:
Name Type Description
config
Properties
Name Type Attributes Default Description
antiBounce <optional>
true Add an anti bounce to avoid double triggering of open windows
log <optional>
false Log the opening of controllers
Source:

(static) currentControllerArgs :Object

Current controller arguments
Type:
  • Object
Source:

(static) currentControllerName :Object

Current controller name
Type:
  • Object
Source:

Methods

(static) close()

Close current Navigatgor and all windows associated with it
Source:

(static) closeAllWindowsExceptFirst()

Close all windows, except first.
Source:

(static) event()

Attach event to current module
Source:

(static) getCurrentController() → {Alloy.Controller}

Return current controller
Source:
Returns:
Type
Alloy.Controller

(static) getCurrentWindow() → {Ti.UI.Window}

Get current Window
Source:
Returns:
Type
Ti.UI.Window

(static) getNavigationController() → {Object}

Return the instance set of Navigator
Source:
Returns:
Type
Object

(static) getWindows() → {Array}

Return the windows stacks
Source:
Returns:
Type
Array

(static) open(name, argsopt, openArgsopt, routeopt) → {Alloy.Controller}

Require an Alloy.Controller and open its main `View` in the Navigator. A `close` event is automatically attached to the main window to call sequentially `Controller.cleanup` (if defined) and `Controller.destroy` This is tracked with Google Analitycs
Parameters:
Name Type Attributes Description
name String The name of the controller
args Object <optional>
The arguments passed to the controller
openArgs Object <optional>
The arguments passed to the `Navigator.openWindow` or `Tab.open`
route String <optional>
Optional route that identify this controller
Source:
Returns:
The controller instance
Type
Alloy.Controller

(static) openDirect(name, argsopt, routeopt) → {Alloy.Controller}

Require an Alloy.Controller without passing it to the Navigator This is anyway tracked with Google Analitycs
Parameters:
Name Type Attributes Description
name String The name of the controller
args Object <optional>
The args passed to the controller
route String <optional>
Optional route that identify this controller
Source:
Returns:
The controller instance
Type
Alloy.Controller

(static) setCurrentController(controller, nameopt, argsopt)

Set current controller
Parameters:
Name Type Attributes Description
controller Alloy.Controller
name String <optional>
args Object <optional>
Source:

(static) setCurrentWindow($window, route)

Set current Window and push in the windows stack
Parameters:
Name Type Description
$window Ti.UI.Window
route String
Source:

(static) setNavigationController(nav, openNowopt)

Set the Navigator used to open the windows ** This is required before opening windows **
Parameters:
Name Type Attributes Description
nav Object An instance of `NavigationWindow` or a `TabGroup`
openNow Boolean <optional>
Specify if call instantly the open on the navigator
Source:

(static) startup(controller, nav, win, controllerName, controllerArgs)

Set, in a single way, the global Navigator (and open it), the Index-Controller and the Index-Window This method, is typically called on startup, on the index.js, like this: ``` Flow.startup($, $.nav, $.win, 'index', {}); ```
Parameters:
Name Type Description
controller Alloy.Controller
nav Ti.UI.iOS.NavigationWindow
win Ti.UI.Window
controllerName String
controllerArgs String
Source: