# Functions

## initializeSDK

▸ **initializeSDK**(): `Promise<void>`

Initializes the Identity Verification SDK using credentials from `TransmitSecurity.plist` (iOS) or `strings.xml` (Android).

### Example

```javascript
import IdentityVerification from 'react-native-ts-idv';

await IdentityVerification.initializeSDK();
```

## startIdentityVerification

▸ **startIdentityVerification**(`startToken`): `Promise<void>`

Starts the identity verification process. This triggers the native SDK to present the document capture and verification flow. Status updates are delivered via the `idv_status_change_event` event emitter.

### Parameters

| Name | Type | Description |
|  --- | --- | --- |
| `startToken` | `string` | A session start token obtained from the backend by [creating a verification session](/guides/verify/quick_start_ios#step-7-create-session) |


### Example

```javascript
import IdentityVerification from 'react-native-ts-idv';

const startToken = verificationSession.startToken;
await IdentityVerification.startIdentityVerification(startToken);
```

## setLogLevel

▸ **setLogLevel**(`logLevel`): `Promise<void>`

Configures the SDK log level for debugging. On Android, setting the log level to `off` disables all logging; any other valid level enables logging.

### Parameters

| Name | Type | Description |
|  --- | --- | --- |
| `logLevel` | `TSIDV.IDVLogLevel` | The desired log level |


## Verification status events

Register for verification status updates using the `idv_status_change_event` event name with a `NativeEventEmitter`:

```javascript
import { NativeModules, NativeEventEmitter } from 'react-native';

const { TsIdv } = NativeModules;
const eventEmitter = new NativeEventEmitter(TsIdv);

const subscription = eventEmitter.addListener(
    'idv_status_change_event',
    (params) => {
        const status = params['status'];
        const additionalData = params['additionalData'];
        // Handle status change
    }
);
```

For all possible status values, see [VerificationStatus](/sdk-ref/react-native-ts-idv/enums/verificationstatus).

style
table th:first-of-type {
    width: 30%;
}
table th:nth-of-type(2) {
    width: 30%;
}
table th:nth-of-type(3) {
    width: 40%;
}