Module: SceneManager

Methods


<static> clearPreviousScene()

Clear previous scene from group stack

Source:
Returns:
Type
void

<static> clearScenes()

Clear all content from group stack

Source:
Returns:
Type
void

<static> deleteSceneAtIndex( [index])

Delete scene from group stack at passed index

Parameters:
Name Type Argument Default Description
index dynamic <optional>
1
Source:
Returns:
Type
void

<static> dismissDialog()

Close currently displayed dialog

Source:
Returns:
Type
void

<static> getActiveScene()

Return group at top of stack without removing

Source:
Returns:
Type
object

<static> init()

Source:
Returns:
Type
void

<static> isDialogOpen()

Returns bool indicating if dialog is currently displayed

Source:
Returns:
Type
boolean

<static> optionClosed()

Return button the user selected

Source:
Returns:
Type
void

<static> optionDialog(title, message, buttons)

Display dialog to user with an OK button

Parameters:
Name Type Description
title dynamic
message dynamic
buttons dynamic
Source:
Returns:
Type
void

<static> optionSelected()

Return button the user selected

Source:
Returns:
Type
void

<static> popScene()

Remove the current group and load the last group from the stack

Source:
Returns:
Type
void

<static> pushScene(newGroup)

Push a new group onto the stack, replacing the existing group on the screen

Parameters:
Name Type Description
newGroup dynamic
Source:
Returns:
Type
void

<static> radioDialog(title, message)

Display dialog to user with an OK button

Parameters:
Name Type Description
title dynamic
message dynamic
Source:
Returns:
Type
void

<static> registerOverhangData(group)

Register observers for overhang data

Parameters:
Name Type Description
group dynamic
Source:
Returns:
Type
void

<static> resetTime()

Reset time

Source:
Returns:
Type
void

<static> settings()

Display user/device settings screen

Source:
Returns:
Type
void

<static> standardDialog(title, message)

Display dialog to user with an OK button

Parameters:
Name Type Description
title dynamic
message dynamic
Source:
Returns:
Type
void

<static> unregisterOverhangData(group)

Remove observers for overhang data

Parameters:
Name Type Description
group dynamic
Source:
Returns:
Type
void

<static> updateOptions(msg)

Update options availability

Parameters:
Name Type Description
msg dynamic
Source:
Returns:
Type
void

<static> updateOverhangTitle(msg)

Update overhang title

Parameters:
Name Type Description
msg dynamic
Source:
Returns:
Type
void

<static> updateOverhangVisible(msg)

Update whether the overhang is visible or not

Parameters:
Name Type Description
msg dynamic
Source:
Returns:
Type
void

<static> updateUser()

Update username in overhang

Source:
Returns:
Type
void

<static> userMessage(title, message)

Display dialog to user with an OK button

Parameters:
Name Type Description
title string
message string
Source:
Returns:
Type
void