> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/linha-android/peripheral/ic-card.md).

# IC Card

Interface Principal de CallBack: `IdCardReader`

Path: `com.lamy.peripheral.sdk.idcard.IDCardReader`

```java
/**
* Construction Method
* IDCardListener：Data callback listening interface
*/
public IdCardReader(IDCardListener IDCardListener)

/**
* Unpacking the box
* @return true:successfully
*/
public boolean openDevice()

/**
* Shut down the device
* @return true:successfully
*/
public boolean closeDevice()

/**
* Set whether to read images
*
* @param read true means to read，false means not to read
* @return int 0 means successful, others mean failed and displays error
code
*/
public int setReadPicture(boolean read)

/**
* Query whether to read images
*
* @return 1，means to read，0 means not to read, others means error code
*/
public int isReadPicture()

// callback data interface
public interface IDCardListener {
/**
* Start reading ID Card
*/
void onReadIDCardStart();

/**
5.4Door Lock, Alarm and Illuminator Module
Lock
Core interface for door lock： DoorManager
Path： com.lamy.peripheral.sdk.asi.DoorManager
* ID card read successfully
*
* @param idCard ID card information, no photos
*/
void onReadIDCardNoPhoto(IDCard idCard);

/**
* Successfully read ID card. When setting not to read images, this
method does not call back
*
* @param idCard ID card info
*/
void onReadIDCardComplete(IDCard idCard);

/**
* IC card read successfully
*
* @param icCard IC card number
*/
void onReadICCard(String icCard);

/**
* Failed to read the card.
*
* @param reason 0-Other errors; 1-Card search failed; 2-Card
selection failed; 3-Card reading failure;
*/
void onReadError(int reason);

}

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/linha-android/peripheral/ic-card.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
