Quark #

Modules #

Quark v1.2.0 Documentation


quark/screen #

Enum: Orientation #

Orientation #

  • Invalid
    Invalid, Default use the User mode
  • Portrait
    Portrait
  • Landscape
    Landscape, Rotate 90 degrees clockwise
  • Reverse_Portrait
    Reverse Portrait, Rotate 180 degrees clockwise
  • Reverse_Landscape
    Reverse Landscape, Rotate 270 degrees clockwise
  • User
    User, Any orientation is allowed
  • User_Portrait
    User Portrait, Portrait and Reverse_Portrait directions available
  • User_Landscape
    User Landscape, Landscape and Reverse_Landscape directions available
  • User_Locked
    User Locked, Lock the application's startup state

Enum: StatusBarStyle #

StatusBarStyle #

  • White
    White
  • Black
    Black

Class: Screen #

Screen #

screen.onOrientation #

screen.orientation #

Current screen direction

screen.statusBarHeight #

  • @get statusBarHeight: number

screen.setVisibleStatusBar(visible) #

Setting whether visible for the status bar

screen.setStatusBarStyle(style) #

Setting style for the status bar

screen.preventScreenSleep(prevent) #

"true" means to prevent screen sleep else no prevent