UsbAccessory function ( Intent arg0 ) { android . hardware . usb . UsbAccessory loc0 = arg0 . getParcelableExtra ( android . hardware . usb . UsbManager . EXTRA_ACCESSORY ) ; if ( loc0 == null ) { return null ; } else { return new UsbAccessory ( loc0 ) ; } }
returns the com.google.android.usb.usbaccessory fora #action_usb_accessory_attached or #action_usb_accessory_attached broadcast intent . this can also be used to retrieve the accessory from the result of a call to #requestpermission . concode_field_sep String ACTION_USB_ACCESSORY_ATTACHED concode_elem_sep String ACTION_USB_ACCESSORY_DETACHED concode_elem_sep String TAG concode_elem_sep IUsbManager mService concode_elem_sep String EXTRA_PERMISSION_GRANTED concode_elem_sep Context mContext concode_field_sep void requestPermission concode_elem_sep boolean hasPermission concode_elem_sep ParcelFileDescriptor openAccessory concode_elem_sep UsbManager getInstance concode_elem_sep UsbAccessory[] getAccessoryList