RpcClient

public interface RpcClient

Methods

closeDevice

void closeDevice(int handle, RpcRequest.Callback callback)

Closes a device.

Parameters:

connect

void connect(AppKey appKey)

Opens a connection to the Capture service

disconnect

void disconnect()

Closes the connection to the Capture service

getDeviceProperty

void getDeviceProperty(int handle, Property property, RpcRequest.Callback callback)

Gets the value of a device property

Parameters:
  • handle – Device handle
  • property – Property to get
  • callback – Callback which will be invoke with the response

getProperty

void getProperty(Property property, RpcRequest.Callback callback)

Gets the value of a Capture property

Parameters:
  • property – Property to get
  • callback – Callback which will be invoke with the response

isConnected

boolean isConnected()

openDevice

void openDevice(String guid, RpcRequest.Callback callback)

Opens a device. A device must be open to configure it and to receive notifications from the device, including decoded data notifications

Parameters:
  • guid – The guid of the device to open
  • callback – Callback that will be invoked with the response that contains the device handle

setDeviceProperty

void setDeviceProperty(int handle, Property property, RpcRequest.Callback callback)

Set the value of a device property

Parameters:
  • handle – Device handle
  • property – Property to set

setProperty

void setProperty(Property property, RpcRequest.Callback callback)

Set the value of a Capture property

Parameters:
  • property – Property to set