Skip to main content

DevicePairing API

Launch and interact with paired devices. Useful for testing launching mobile devices and casting to TVs and set-top boxes.

device_pairing.launch

Signatures

launch(workflow_id, constraints, timeout \ to_timeout(minute: 2))

Description

Launches a device with the given constraints

Times out after 2m by default

device_pairing.rpc

Signatures

rpc(paired_session_id, function_name, args, timeout \ to_timeout(minute: 1))

Description

Remotely executes the given function name and args on the passed session_id. Only sessions spawned from the current workflow can receive messages

Times out after 1m by default