app ‐ Entry Point For Scriptit‐Core Apps - cobocombo/Scriptit-Core GitHub Wiki

Module that serves as the main entry point for any Scriptit-Core app, with some other added functionality.

Properties

  • isFirstLaunch: Flag that returns if this is the first launch of the app or not. Read only.
  • statusBarColor: The color of the iOS status bar. Any valid CSS color value will be accepted.

Methods

  • getComponentById ({ id }): Utility method to return any component that has been added to the app with a valid id previously.
  • present ({ root }): Method to present the app from a valid root component. Acceptable root types are: Navigator, Page, PhaserScene, Splitter, and Tabbar.

Usage

let page = new ui.Page();
page.backgroundColor = 'red';
app.present({ root: page });