public class HidServicesSpecification extends Object
Specification to provide the following to API consumers:
Constructor and Description |
---|
HidServicesSpecification() |
Modifier and Type | Method and Description |
---|---|
int |
getPauseInterval() |
int |
getScanInterval() |
ScanMode |
getScanMode() |
boolean |
isAutoShutdown() |
void |
setAutoShutdown(boolean autoShutdown) |
void |
setPauseInterval(int pauseInterval) |
void |
setScanInterval(int scanInterval) |
void |
setScanMode(ScanMode scanMode) |
public ScanMode getScanMode()
public void setScanMode(ScanMode scanMode)
scanMode
- The scan mode to use to facilitate attach/detach eventspublic int getScanInterval()
public void setScanInterval(int scanInterval)
scanInterval
- The interval in milliseconds between device enumeration scanspublic int getPauseInterval()
public void setPauseInterval(int pauseInterval)
pauseInterval
- The interval in milliseconds where device enumeration is paused (if scan mode supports pausing)public boolean isAutoShutdown()
public void setAutoShutdown(boolean autoShutdown)
autoShutdown
- True if a shutdown hook should be set to close the API automatically (recommended)Copyright © 2014–2020 Bitcoin Solutions Ltd. All rights reserved.