Options
All
  • Public
  • Public/Protected
  • All
Menu

Manage access to the main subsystems

Hierarchy

  • System

Index

Accessors

activityStartState

  • get activityStartState(): string
  • set activityStartState(state: string): void
  • Returns string

  • Parameters

    • state: string

    Returns void

audio

debugUtilities

game

  • get game(): Game
  • set game(theGame: Game): void
  • Returns Game

  • Parameters

    Returns void

isActivityFinished

  • get isActivityFinished(): boolean
  • set isActivityFinished(isFinished: boolean): void
  • Returns boolean

  • Parameters

    • isFinished: boolean

    Returns void

isBackgroundMusicOn

  • get isBackgroundMusicOn(): boolean
  • Returns boolean

keyboard

  • Returns Keyboard

leaderboard

  • Returns Leaderboard

  • Parameters

    Returns void

profileRewards

progress

reporter

  • Returns Reporter

settings

  • Returns Settings

Static instance

  • Returns System

Methods

isLittleScholar

  • isLittleScholar(): boolean
  • Checks if current device is Little Scholar

    Returns boolean

    whether the current device is running on the Little Scholars browser or not

restartActivity

  • restartActivity(): void
  • Returns void

setBackground

  • Set background color/image of the activity's containing html element and optionally set the color of the phaser state

    Parameters

    • htmlInfo: IHtmlBackgroundInfo

      data describing html background attributes

    • Optional phaserStageColor: string

      optional color to set the phaser stage

    Returns void

toggleBackgroundMusic

  • toggleBackgroundMusic(): void
  • Returns void

turnOffBackgroundMusic

  • turnOffBackgroundMusic(): void
  • Returns void

turnOnBackgroundMusic

  • turnOnBackgroundMusic(): void
  • Returns void