Members
(static) config
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Properties
|
(static) currentControllerArgs :Object
Current controller arguments
Type:
- Object
(static) currentControllerName :Object
Current controller name
Type:
- Object
Methods
(static) close()
Close current Navigatgor and all windows associated with it
(static) closeAllWindowsExceptFirst()
Close all windows, except first.
(static) event()
Attach event to current module
(static) getCurrentController() → {Alloy.Controller}
Return current controller
Returns:
- Type
- Alloy.Controller
(static) getCurrentWindow() → {Ti.UI.Window}
Get current Window
Returns:
- Type
- Ti.UI.Window
(static) getNavigationController() → {Object}
Return the instance set of Navigator
Returns:
- Type
- Object
(static) getWindows() → {Array}
Return the windows stacks
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 |
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 |
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> |
(static) setCurrentWindow($window, route)
Set current Window and push in the windows stack
Parameters:
Name | Type | Description |
---|---|---|
$window |
Ti.UI.Window | |
route |
String |
(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 |
(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 |