Code example for UsbAccessory

Methods: equals

0
		 
	} 
	 
	public boolean matchesThisAccessory(Intent intent) { // TODO: Name this something better
		UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
		return accessory != null && accessory.equals(mAccessory);
	} 
	 
	 
	public boolean hasPermission(Object theAccessoryObj) {
		return mUsbManager.hasPermission((UsbAccessory) theAccessoryObj);
	} 
	 
	public Object getConnectedAccessory() {
		UsbAccessory[] accessories = mUsbManager.getAccessoryList();
		UsbAccessory accessory = (accessories == null ? null : accessories[0]);
		return accessory;
	} 
 
	public Object getAccessory() {