new deviceconnector.DeviceConnector(options)

Creates an instance of class DeviceConnector which is required to access the API methods.

Input parameter

Options object (optional)

The option name and type are described in the following list:

  • logLevel (string): Defines the log output written on browser console. Supported values are NONE, ERROR, WARNING, INFO and DEBUG. Default: NONE
  • deviceConnectorServerUrl (string): The URL to the installed DeviceConnector server component which is required for capturing signatures with a signature pad. Default: http://localhost:6613

Returns

A new instance of class DeviceConnector.

Example

var options = {
    logLevel: 'DEBUG',
    deviceConnectorServerUrl: 'http://localhost:6613'
};
var deviceConnector = new deviceconnector.DeviceConnector(options);