Skip to main content
Version: 2025.0

device

Provides methods for working within a native client (e.g. run commands on a desktop system)

Methods

executeDesktopCommand

executeDesktopCommand(pCommand): void

Execute a command on the desktopclient without waiting for a response

Parameters

pCommand
string | number | boolean

The command to execute

Returns

void

Throws

May throw an exception.


executeDesktopCommandAndWait

executeDesktopCommandAndWait(pCommand, pTimeout): string

Execute a command on the desktopclient and wait for the response

Parameters

pCommand
string | number | boolean

The command to execute

pTimeout
number

The max time to wait in millis

Returns

string

Throws

May throw an exception.


hasNativeDesktopSupport

hasNativeDesktopSupport(): boolean

Returns true if the user uses the desktop client

Returns

boolean