public boolean lightDisplayBacklight(boolean value) { byte[] response; try { response = readerControl.lightDisplayBacklight(value); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setDisplayContrast(int contrast) { byte[] response; try { response = readerControl.setDisplayContrast(contrast); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); } }
public boolean clearDisplay() { byte[] response; try { response = readerControl.clearDisplay(); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setPICC(AcrPICC ... types) { int picc = 0; for(AcrPICC type : types) { switch(type) { case POLL_ISO14443_TYPE_A:{ picc |= POLL_ISO14443_TYPE_A; break; } case POLL_ISO14443_TYPE_B: { picc |= POLL_ISO14443_TYPE_B; break; } default : { throw new IllegalArgumentException("Unexpected PICC " + type); } } } byte[] response; try { response = readerControl.setPICC(picc); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setDefaultLEDAndBuzzerBehaviour(AcrDefaultLEDAndBuzzerBehaviour ... types) { byte[] response; try { int operation = serializeBehaviour(types); response = readerControl.setDefaultLEDAndBuzzerBehaviour(operation); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setLEDs(AcrLED ... types) { byte[] response; try { int operation = serializeLEDs(types); response = readerControl.setLEDs(operation); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setAutomaticPICCPolling(AcrAutomaticPICCPolling ... types) { byte[] response; try { response = readerControl.setAutomaticPICCPolling(AcrAutomaticPICCPolling.serialize(types)); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean displayText(AcrFont font, int style, int line, int position, byte[] message) throws AcrReaderException { if(line < 0) { throw new IllegalArgumentException("Expected non-negative line index"); } if(position < 0) { throw new IllegalArgumentException("Expected non-negative position index"); } if(line >= font.getLines()) { throw new IllegalArgumentException("Font " + font + " supports " + font.getLines() + " lines"); } if(position + message.length > font.getLineLength()) { throw new IllegalArgumentException("Font " + font + " supports " + font.getLineLength() + " chars per line"); } if(style != Typeface.BOLD && style != Typeface.NORMAL) { throw new IllegalArgumentException("Only font styles " + Typeface.NORMAL +" and " + Typeface.BOLD + " supported"); } byte[] response; try { response = readerControl.displayText(font.getId(), style == Typeface.BOLD, line, position, message); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }