/** 在这儿最多会执行三次Stop,只所以这样,只是为了方便各Activity不用担心执行一次不成功 */ public static boolean stop() { if (rfid != null) { if (rfid.isFunctionSupported(com.senter.support.openapi.StUhf.Function.StopOperation)) { for (int i = 0; i < 3; i++) { if (rfid().stopOperation()) { Log.i(TAG, "stopOperation 成功"); return true; } } Log.i(TAG, "stopOperation 不成功"); return false; } } return true; }
/** 清除Selection选定 */ public static void clearMaskAndSelection() { if (rfid.isFunctionSupported(StUhf.Function.DisableMaskSettings)) { rfid.disableMaskSettings(); } }