Constructs a new BaseApp instance.
The root scene object.
Optional
launchArgs: ILaunchArgsOptional
_Optional object ID for this app instance.
IHosannaView
Optional
audioThis hint can be used in conjunction with the audio guide item
Optional
audioThe background rectangle node.
Indicates whether the element can receive focus.
List of child views.
Indicdates whether the view is a focus group which means it can have a focused child Otherwise it will be focused itself
Optional
customOptional
focusedFocus manager for handling focus across views.
Application ID.
Indicates whether the element is currently focused.
If true, this view has been presented in an AggregateViewController
Node pool for view management.
Optional
parentOptional
rootThe root view of the application.
Style registry for managing styles.
List of subviews.
System service for platform/system-level operations.
Audio guide manager for handling audio guide events.
Timer service for scheduling and ticking.
The IHosannaView subclass that created us in getViews
Indicates whether the navigatable entity is visible.
Children
Optional
mountTarget: IHosannaView<ViewState>Adds the dialog manager view to the app. Sets up dialog event handlers.
View Creation
Optional
nextState: ViewStateBegins the application launch sequence. Initializes scene, IoC, views, and starts the main loop.
Builds the view and attaches it to the view owner.
Optional
mountTarget: IHosannaView<ViewState>The target to mount the view.
The built view or undefined.
Optional
options: IScreenDismissOptionsOptional
args: Record<string, unknown>Optional
cancellationToken: HsCancellationTokenAsync Support
Optional
args: Record<string, unknown>Optional
callback: AsyncCommandEventCallbackResolves the next focusable element in the given direction.
The event containing details about the focus transition.
The next focusable element, or undefined if none exists.
Call this method to finish the app launch sequence.
Audio guide support
Measurement
Rendererers
Hibernates the view and its subviews by releasing native renderers and setting the view phase to Hibernating.
Hides the main menu, making it invisible and unfocusable.
Whether to animate the menu disappearance.
Initializes asynchronous services and prepopulates the async command pool.
A promise that resolves when async services are initialized.
The view to be added as a subview.
index of the child in the parent view, -1 means add to end
Focus
Loads the application configuration, including style JSON.
A promise that resolves when the configuration is loaded.
Called when the navigatable entity is shown.
DO NOT CALL THIS METHOD DIRECTLY DO NOT OVERRIDE IT
Called after the navigatable entity has been added to an aggregate view.
The aggregate view to which the entity has been added.
Called after the navigatable entity has been removed from an aggregate view.
The aggregate view from which the entity has been removed.
Called when the navigatable entity is hidden.
DO NOT CALL THIS METHOD DIRECTLY DO NOT OVERRIDE IT
Handles a key event.
The key event to handle.
True if the key event was handled, false otherwise.
Event which was processed in main.brs On Web emulator, this is called directly from the Brs classes that dispatch the event. e.g. roAudioGuide, will call AppUtils.getApp().onSystemEvent(event);
Called before the navigatable entity is added to an aggregate view.
The aggregate view to which the entity will be added.
This method is called before applying state changes to the view. It is used to perform any necessary preparations before the state changes are applied.
Called before the navigatable entity is removed from an aggregate view.
The aggregate view from which the entity will be removed.
Pre-creates SceneGraph (SG) views and populates the node pool.
A promise that resolves when SG views are pre-created.
Prepares the background rectangle for the app. Creates and inserts a rectangle node if not already present.
Prepares the IOC (Inversion of Control) container.
Presents a new screen in the navigation stack or as a dialog.
The screen to be presented, represented by a ViewStruct<ViewState>
.
Optional
options: IScreenPresentationOptionsOptional presentation options.
If true, the screen will be presented as a dialog.
If true, the screen transition will be animated.
Handles on-device debugging commands.
The debug command to execute.
IReusable implementation
Sets the frames per second for the main loop.
The desired frames per second.
Navigatable View
Shows a dialog by passing it to the dialog manager.
The dialog view to show.
Shows the main menu, making it visible and focusable.
Whether to animate the menu appearance.
Stops the main application loop.
Wakes up the view and its subviews by reserving native renderers and setting the view phase to Mounted.
RemoteDebugApp is the main application class for the remote debug server.
Remarks