public interface IAdvanceDevice
Modifier and Type | Method and Description |
---|---|
void |
close()
Disconnect a device from the device object.
|
boolean |
isOpened()
The device is Opened
|
boolean |
open(android.content.Context context)
Uses default logical ID to open the device for use.
|
void close() throws DeviceException
If a continuous activity has been started by the device object, this activity is stopped. For example, the led object stop any continuous blink when it close.
Once closed, the device object is no longer associated with any particular device, open() may then be used to reestablish a connection to either the former device object or a new device object.
If there is a asynchronous request before close, then the asynchronous request will be cancelled.
DeviceException
- :
boolean isOpened()
boolean open(android.content.Context context) throws DeviceException
context
- Note: This method is synchronous. Avoid calling it on the Main UI thread
The following two conditions is not allowed:DeviceException