Available on clay
Clay app
staticread onlyapp:Clay
Get Clay instance from anywhere with Clay.app
Clay.app
read onlyconfig:Config
Clay config
read onlyevents:Events
Clay events handler
read onlyio:IO
Clay io (implementation varies depending on the target)
read onlyassets:Assets
Clay assets
read onlyaudio:Audio
Clay audio
read onlyinput:Input
Clay input
read onlyruntime:Runtime
Clay runtime (implementation varies depending on the target)
@:value(false)read onlyshuttingDown:Bool = false
true if shut down has begun
true
@:value(false)read onlyhasShutdown:Bool = false
true if shut down has completed
@:value(-1)read onlytimestamp:Float = -1
The last known timestamp in seconds, or -1 if not defined yet
-1
read onlyappId:String
App identifier
read onlyscreenWidth:Int
Main window screen width
read onlyscreenHeight:Int
Main window screen height
read onlyscreenDensity:Float
Main window screen density (device pixel ratio)
read onlybackgroundQueue:BackgroundQueue
Shared background queue
@:value(false)immediateShutdown:Bool = false
@:value(false)freeze:Bool = false
Whether or not we are frozen, ignoring events i.e backgrounded/paused
@:value(false)read onlyready:Bool = false
Whether or not the ready state has been reached
shutdown():Void