launchApp

fun launchApp(selectedApp: Application, selectedDevice: Device, socket: Socket, script: String = defaultScript)

This function launches the selected application on the selected device.

Parameters

selectedApp

The application to be launched.

selectedDevice

The device on which the application will be launched.

socket

The current socket connection.

script

The script to be run when the application is launched.

Example usage:

launchApp(
selectedApp = Application(),
selectedDevice = Device(),
socket = Socket(),
script = "console.log('Hello, World!')"
)