Quark
#
Modules #
quark/actionquark/appquark/bubblesquark/bufferquark/checkboxquark/cssquark/ctrquark/defsquark/dialogquark/eventquark/fontquark/fsquark/hashquark/httpquark/indexquark/jsonbquark/keyboardquark/lmdbquark/mediaquark/navquark/netquark/osquark/pathquark/pkgquark/screenquark/statequark/stepperquark/storagequark/testquark/typesquark/uriquark/utilquark/viewquark/windowquark/wsquark/_bufferquark/_commonquark/_decoratorsquark/_eventquark/_extquark/_md5quark/_sha1quark/_sha256quark/_utilquark/_watching
Quark v1.4.0 Documentation
Contents
quark/screen #
Enum: Orientation #
Orientation #
Invalid
Invalid, Default use the User modePortrait
PortraitLandscape
Landscape, Rotate 90 degrees clockwiseReverse_Portrait
Reverse Portrait, Rotate 180 degrees clockwiseReverse_Landscape
Reverse Landscape, Rotate 270 degrees clockwiseUser
User, Any orientation is allowedUser_Portrait
User Portrait, Portrait and Reverse_Portrait directions availableUser_Landscape
User Landscape, Landscape and Reverse_Landscape directions availableUser_Locked
User Locked, Lock the application's startup state
Enum: StatusBarStyle #
StatusBarStyle #
White
WhiteBlack
Black
Class: Screen #
Screen #
Extends: Notification
screen.onOrientation #
@eventonOrientation:EventNoticer<Event<Screen>>
Trigger when screen direction change
screen.orientation #
Current screen direction
readonly orientation: Orientation
screen.statusBarHeight #
readonly statusBarHeight: number
screen.setVisibleStatusBar(visible) #
Setting whether visible for the status bar
setVisibleStatusBar(visible: boolean): void
screen.setStatusBarStyle(style) #
Setting style for the status bar
setStatusBarStyle(style: StatusBarStyle): void
screen.preventScreenSleep(prevent) #
"true" means to prevent screen sleep else no prevent
preventScreenSleep(prevent: boolean): void