public abstract class AcmDeviceActivity extends RosActivity implements AcmDevicePermissionCallback
nodeMainExecutorService
Modifier | Constructor and Description |
---|---|
protected |
AcmDeviceActivity(java.lang.String notificationTicker,
java.lang.String notificationTitle) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<UsbDevice> |
getUsbDevices(int vendorId,
int productId) |
protected void |
onCreate(Bundle savedInstanceState) |
protected void |
onDestroy() |
protected void |
onNewIntent(Intent intent) |
protected void |
requestPermission(UsbDevice usbDevice)
Request permission from the user to access the supplied
UsbDevice . |
getMasterUri, init, onActivityResult, onStart, startActivityForResult, startMasterChooser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPermissionDenied, onPermissionGranted
protected AcmDeviceActivity(java.lang.String notificationTicker, java.lang.String notificationTitle)
protected void onCreate(Bundle savedInstanceState)
protected void onNewIntent(Intent intent)
protected java.util.Collection<UsbDevice> getUsbDevices(int vendorId, int productId)
protected void requestPermission(UsbDevice usbDevice)
UsbDevice
.usbDevice
- the UsbDevice
that provides ACM serialcallback
- will be called once the user has granted or denied permissionprotected void onDestroy()
onDestroy
in class RosActivity