Skip to content

Interface: Console ​

Defined in: types/desktop-engine.d.ts:4872

Console (built into JavaScriptCore; the engine also logs through it)

Methods ​

assert() ​

ts
assert(condition?, ...data): void;

Defined in: types/desktop-engine.d.ts:4890

Asserts a condition

Parameters ​

ParameterType
condition?boolean
...data?any[]

Returns ​

void

Remarks ​

Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly


debug() ​

ts
debug(...data): void;

Defined in: types/desktop-engine.d.ts:4885

Logs a debug message

Parameters ​

ParameterType
...dataany[]

Returns ​

void

Remarks ​

Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly


error() ​

ts
error(...data): void;

Defined in: types/desktop-engine.d.ts:4880

Logs an error (uncaught exceptions are also reported through it)

Parameters ​

ParameterType
...dataany[]

Returns ​

void


info() ​

ts
info(...data): void;

Defined in: types/desktop-engine.d.ts:4876

Logs an informational message

Parameters ​

ParameterType
...dataany[]

Returns ​

void


log() ​

ts
log(...data): void;

Defined in: types/desktop-engine.d.ts:4874

Logs a message

Parameters ​

ParameterType
...dataany[]

Returns ​

void


time() ​

ts
time(label?): void;

Defined in: types/desktop-engine.d.ts:4900

Starts a timer

Parameters ​

ParameterType
label?string

Returns ​

void

Remarks ​

Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly


timeEnd() ​

ts
timeEnd(label?): void;

Defined in: types/desktop-engine.d.ts:4905

Stops a timer

Parameters ​

ParameterType
label?string

Returns ​

void

Remarks ​

Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly


trace() ​

ts
trace(...data): void;

Defined in: types/desktop-engine.d.ts:4895

Logs the call stack

Parameters ​

ParameterType
...dataany[]

Returns ​

void

Remarks ​

Unconfirmed: a JavaScriptCore built-in that the engine doesn't use explicitly


warn() ​

ts
warn(...data): void;

Defined in: types/desktop-engine.d.ts:4878

Logs a warning

Parameters ​

ParameterType
...dataany[]

Returns ​

void

The SDK is released under the Apache License 2.0