Quark #

Modules #

Quark v1.3.0 Documentation


quark/app #

AEvent #

Class: NativeApplication #

NativeApplication #

nativeapplication.isLoaded #

After onLoad event

nativeapplication.screen #

screen Object

nativeapplication.fontPool #

fontPool Object

nativeapplication.activeWindow #

current active window

nativeapplication.defaultTextOptions #

default text options

nativeapplication.windows #

all of windows

nativeapplication.maxResourceMemoryLimit #

get or set max resource memory limit

  • maxResourceMemoryLimit: number

nativeapplication.usedResourceMemory() #

get current used resource memory

nativeapplication.clear(all?) #

clear resource memory

nativeapplication.openURL(url) #

open uri For: examples openURL('https://baidu.com')

nativeapplication.sendEmail(recipient,subject,body?,cc?,bcc?) #

By parameter open email client

Class: Application #

Application #

application.onLoad #

After initialization the application call

application.onUnload #

Before unload the application call

application.onPause #

When enter the background call

application.onResume #

When enter the foreground call

application.onMemoryWarning #

Triggered when memory is insufficient. After triggering,
it will automatically call clear to clean up resources and perform js garbage collection

default #

default.current #