public class OTG
extends java.lang.Object
Constructor and Description |
---|
OTG() |
Modifier and Type | Method and Description |
---|---|
static OTG |
getInstance()
获取OTG操作实例
Get instance for OTG. |
boolean |
isPowerOn()
判断设备是否上电
Detect whether device is powered on or not. |
void |
off()
关闭OTG
Close OTG. |
void |
on()
打开OTG
Open OTG. |
public static OTG getInstance()
public void on()
public void off()
public boolean isPowerOn()