> 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/iaserver/iaimessage.md).

# IAiMessage

Classe de informações de retorno de chamada do algoritmo, encapsula o reconhecimento do algoritmo após o dados de retorno de chamada.

```java
public class IAiMessage implements Parcelable {
    
/**
* The type of message returned by license plate recognition
*/
public static final int EVENT_LRP_RESULT = 1001;

/**
* The QR code identifies the type of message returned
*/
public static final int EVENT_QC_CODE_RESULT = 1003;

/**
* The type of message returned by the witness comparison
*/
public static final int EVENT_FACE_CARD_RESULT = 1004;

/**
* The type of message returned by face and base comparison
*/
public static final int EVENT_FACE_DATABASE_RESULT = 1005;

/**
* Extract the message type returned by the eigenvalue
*/
public static final int EVENT_GET_FEATURE_RESULT = 1006;

/**
* Algorithm service internal error
*/
public static final int EVENT_SERVER_INTERNAL_ERROR = -1;

/**
* Algorithm memory library error
*/
public static final int EVENT_ALGORITHM_ERROR = -2;

/**
* Camera module error
*/
public static final int EVENT_CAMERA_ERROR = -3;

/**
* Unknown error
*/
public static final int VALUE_UNKNOWN_ERROR = -10;

/**
* Algorithm callback Callback detected target object data in callback data (used only by face
correlation algorithms)
*/
@Deprecated
public static final String KEY_FACE = "FACE_AREA";

/**
* Algorithm callback error information in callback data
*/
public static final String KEY_ERROR_TYPE = "ERROR_TYPE";

/**
* The target object data detected in the algorithm callback data (except for the face
information, all are the key), and the subsequent new algorithm return values will use the key
*/
public static final String KEY_ALGORITHM_DETECT_RESULT = "algorithm_detect_result";

/**
* Gets the amount type of data returned by the callback
*
* @return the returned message type value of {@link IAiMessage#EVENT_LRP_RESULT}
* or {@link IAiMessage#EVENT_QC_CODE_RESULT}
* or {@link IAiMessage#EVENT_FACE_CARD_RESULT}
* or {@link IAiMessage#EVENT_FACE_DATABASE_RESULT}
* or {@link IAiMessage#EVENT_GET_FEATURE_RESULT}
*/
public int getMsgType();

/**
* Set message type
* @param msgType
*/
public void setMsgType(int msgType);

/**
* Get the status of the message, success or failure, etc. (reserved)
*
* @return message status
*/
public int getMsgCode();

/**
* Set message status
*
* @param msgCode message status
*/
public void setMsgCode(int msgCode);

/**
* Get the content of the message (reserved)
*
* @return message content
*/
public String getMessage();

public void setMessage(String message);

/**
* The message is inside specific business data
* The recognition results of the algorithm are encapsulated in this field
*
* @return Business data content
*/
public Bundle getBundle();

public void setBundle(Bundle bundle);

}

```


---

# 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/iaserver/iaimessage.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.
