> For the complete documentation index, see [llms.txt](https://ftech.gitbook.io/ioe-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ftech.gitbook.io/ioe-sdk/android-ioe-sdk/2.-sdk-integration.md).

# 2. SDK Integration

**Init record SDK**

| Param     | Type   | Description    |
| --------- | ------ | -------------- |
| appId     | String | Application id |
| secretKey | String | IOE secret key |

* After successful initial, the SDK returns a status resulting in the `onSuccess()` callback. Handling of successful initial here.
* When initial fails, it will be processed at callback `onFail()`.

```kotlin
FTechIOEManager.initRecord(appId, secretKey, new IFTechIOECallback<Boolean>() {
            @Override
            public void onSuccess(Boolean info) {
                
            }

            @Override
            public void onFail(APIException error) {
                
            }

            @Override
            public void onCancel() {
                
            }
        });
```

**Register recording callback**

After registration, the SDK will return the corresponding status in the callback

<table><thead><tr><th width="249">Status</th><th>Description</th></tr></thead><tbody><tr><td>onStart</td><td>Called at start record</td></tr><tr><td>onRecording</td><td>Called while in process recording</td></tr><tr><td>onFail</td><td>Called when an error occurs in process recording</td></tr><tr><td>onComplete</td><td>Called when completed record process and return evaluate result</td></tr></tbody></table>

```kotlin
FTechIOEManager.registerRecordingListener(new IFTechRecordingCallback() {
            @Override
            public void onStart() {

            }

            @Override
            public void onRecording() {

            }

            @Override
            public void onFail(@NonNull APIException error) {

            }

            @Override
            public void onComplete(@NonNull StopRecordIOEResponse result) {

            }
        });
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ftech.gitbook.io/ioe-sdk/android-ioe-sdk/2.-sdk-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
