Skip to content

Interface: Console ​

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

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

Methods ​

assert() ​

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

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

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:3830

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:3825

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:3821

Logs an informational message

Parameters ​

ParameterType
...dataany[]

Returns ​

void


log() ​

ts
log(...data): void;

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

Logs a message

Parameters ​

ParameterType
...dataany[]

Returns ​

void


time() ​

ts
time(label?): void;

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

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:3850

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:3840

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:3823

Logs a warning

Parameters ​

ParameterType
...dataany[]

Returns ​

void

The SDK is released under the Apache License 2.0