public final class DeviceApi extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DeviceApi.BlackAndWhitePad
Functions for signature pads with black and white display.
|
static class |
DeviceApi.Button
Devices may have buttons.
|
static class |
DeviceApi.Communication
Can change how the DeviceApi communicatios with the signature devices.
|
static class |
DeviceApi.ContinuousScroll
Has types for controling the continuous scroll mode.
|
static class |
DeviceApi.ConvertImage
Can convert images to SOI and back.
|
static class |
DeviceApi.Crypto
A collection of cryptograpic functions most of which entail a signature
device.
|
static class |
DeviceApi.Device
Device related types.
|
static class |
DeviceApi.Disconnect
Can set the disconnect callback.
|
static class |
DeviceApi.DocumentViewing
Can display documents on the device display.
|
static class |
DeviceApi.DriverXmlCertificate
Can set the driver XML certificate.
|
static interface |
DeviceApi.FailureCallback
The callback to call when a problem occurs during the loading of the .NET
assemblies.
|
static class |
DeviceApi.FileSystem
Can read/write files from/to the device.
|
static class |
DeviceApi.Filter
Various device filters.
|
static class |
DeviceApi.License
Can set the License.
|
static class |
DeviceApi.PromoScreen
Can change the promoscreens.
|
static class |
DeviceApi.SDialog
Controls the simple dialog mode.
|
static class |
DeviceApi.SignatureImage
Can get the signature image and change related options.
|
static class |
DeviceApi.SignatureMode
Various signature modes.
|
static class |
DeviceApi.SignatureRectangle
Sets the area on the display of the signature device that is to be used
for capturing the drawn signature.
|
static class |
DeviceApi.SignFinished
The signing is considered finished after the signer has stopped drawing
for a certain timeout.
|
static class |
DeviceApi.SignHasTimedOut
The signing will time out when the signer does not start to draw for a
certain timespan.
|
static class |
DeviceApi.SignImageChanged
Can set the SignImageChanged callback.
|
static class |
DeviceApi.SignStarted
Can set the SignStarted callback.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
calibrateSensor()
Starts a sensor calibration.
|
static Optional<Boolean> |
checkConnectedDevice(String deviceName)
Checks whether a device is connected.
|
static void |
close()
Frees unmanaged memory.
|
static List<DeviceApi.Device.Name> |
deviceSearch()
Search and select a device with a window.
|
static List<DeviceApi.Device.Name> |
deviceSearch(DeviceApi.Filter filter)
Search and select a device with a window.
|
static Optional<String> |
echo(String text)
Echos the given text.
|
static List<DeviceApi.Device.Name> |
enumerateDevices()
Enumerates the available devices.
|
static List<DeviceApi.Device.Name> |
enumerateDevices(DeviceApi.Filter filter)
Enumerates the available devices in a filtered way
|
static void |
findRuntimeConfig() |
static Optional<Integer> |
GetDeviceTransPortProtocol()
Gets the Protocol.
|
static Optional<String> |
getHello()
Gets a "Hello".
|
static void |
load()
Loads the shared library whose name starts with "SigDeviceAPI.WrapperNE".
|
static void |
preload_runtime()
Preloads the .NET runtime.
|
static void |
printResourcePrefix() |
static boolean |
resetDevice()
Resets all device options that are not persisted to the permanent storage
of the device.
|
static boolean |
setAdminKeyToUnlockDevice(String key)
Performing restricted operations with the device require it to be
unlocked with an adminKey.
|
static boolean |
setCustomerLogoMode()
Sets the device to the customer logo mode.
|
static boolean |
setDevice(DeviceApi.Device.Name device)
Sets the device to control.
|
static boolean |
SetDeviceTransPortProtocol(int protcol)
Sets the Protocol
|
static boolean |
setFailureCallback(DeviceApi.FailureCallback callback)
Sets the callback to call in case of failure during the loading of the
.NET assemblies.
|
static boolean |
setSignatureRectangle()
Sets the standard signature rectangle, if any.
|
static boolean |
setSignatureRectangle(DeviceApi.SignatureRectangle signatureRectangle)
Sets the signature rectangle.
|
static boolean |
setSignBackground(BufferedImage image)
Sets the sign background
|
static boolean |
setSignBackground(BufferedImage image,
int page,
int numberOfPages)
Sets the sign background as well as the page number text in the form
"page/numberOfPages".
|
static void |
setSuspendMode(boolean bval) |
static boolean |
startSignatureMode(DeviceApi.SignatureMode signatureMode)
Starts a signature mode.
|
static boolean |
stopSignatureCapture() |
static Optional<Integer> |
subtract(int a,
int b)
Subtracts two numbers.
|
public static void load()
public static void setSuspendMode(boolean bval)
public static void close()
public static boolean setFailureCallback(DeviceApi.FailureCallback callback)
callback
- The callback.public static void preload_runtime()
public static Optional<String> getHello()
public static Optional<Integer> subtract(int a, int b)
a
- ab
- bpublic static Optional<String> echo(String text)
text
- The text to echo.public static void printResourcePrefix()
public static void findRuntimeConfig()
public static List<DeviceApi.Device.Name> enumerateDevices()
public static List<DeviceApi.Device.Name> enumerateDevices(DeviceApi.Filter filter)
filter
- The device filter.public static List<DeviceApi.Device.Name> deviceSearch()
public static List<DeviceApi.Device.Name> deviceSearch(DeviceApi.Filter filter)
filter
- How to filter the available devices.public static boolean setDevice(DeviceApi.Device.Name device)
device
- The device name.public static boolean SetDeviceTransPortProtocol(int protcol)
protcol
- 0 = USB-HID, 1 = not used Do not set, 2 = VCOM.public static Optional<Integer> GetDeviceTransPortProtocol()
public static boolean startSignatureMode(DeviceApi.SignatureMode signatureMode)
signatureMode
- Which mode to start.public static boolean stopSignatureCapture()
public static boolean setCustomerLogoMode()
public static boolean calibrateSensor()
public static Optional<Boolean> checkConnectedDevice(String deviceName)
deviceName
- The name of the device as a character string.public static boolean setSignatureRectangle()
public static boolean setSignatureRectangle(DeviceApi.SignatureRectangle signatureRectangle)
signatureRectangle
- The signature rectangle.public static boolean setSignBackground(BufferedImage image)
image
- The image.DeviceApi.SignatureMode.SignInDocument
mode.public static boolean setSignBackground(BufferedImage image, int page, int numberOfPages)
image
- The image.page
- The page number.numberOfPages
- The number of pages.public static boolean resetDevice()
public static boolean setAdminKeyToUnlockDevice(String key)
key
- The key.Copyright © 2024. All rights reserved.