{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"SDK Reference","type":"markdown"},"seo":{"title":"Functions","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"functions","__idx":0},"children":["Functions"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"initializesdk","__idx":1},"children":["initializeSDK"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["initializeSDK"]},"(): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise<void>"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Initializes the Identity Verification SDK using credentials from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TransmitSecurity.plist"]}," (iOS) or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["strings.xml"]}," (Android)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example","__idx":2},"children":["Example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"import IdentityVerification from 'react-native-ts-idv';\n\nawait IdentityVerification.initializeSDK();\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"startidentityverification","__idx":3},"children":["startIdentityVerification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["startIdentityVerification"]},"(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startToken"]},"): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise<void>"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Starts the identity verification process. This triggers the native SDK to present the document capture and verification flow. Status updates are delivered via the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["idv_status_change_event"]}," event emitter."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":4},"children":["Parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["startToken"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["A session start token obtained from the backend by ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/verify/quick_start_ios#step-7-create-session"},"children":["creating a verification session"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-1","__idx":5},"children":["Example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"import IdentityVerification from 'react-native-ts-idv';\n\nconst startToken = verificationSession.startToken;\nawait IdentityVerification.startIdentityVerification(startToken);\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"setloglevel","__idx":6},"children":["setLogLevel"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["▸ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["setLogLevel"]},"(",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["logLevel"]},"): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Promise<void>"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Configures the SDK log level for debugging. On Android, setting the log level to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["off"]}," disables all logging; any other valid level enables logging."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters-1","__idx":7},"children":["Parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["logLevel"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TSIDV.IDVLogLevel"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The desired log level"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"verification-status-events","__idx":8},"children":["Verification status events"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Register for verification status updates using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["idv_status_change_event"]}," event name with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NativeEventEmitter"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"import { NativeModules, NativeEventEmitter } from 'react-native';\n\nconst { TsIdv } = NativeModules;\nconst eventEmitter = new NativeEventEmitter(TsIdv);\n\nconst subscription = eventEmitter.addListener(\n    'idv_status_change_event',\n    (params) => {\n        const status = params['status'];\n        const additionalData = params['additionalData'];\n        // Handle status change\n    }\n);\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For all possible status values, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/react-native-ts-idv/enums/verificationstatus"},"children":["VerificationStatus"]},"."]},{"$$mdtype":"Tag","name":"style","attributes":{},"children":["\ntable th:first-of-type {\n    width: 30%;\n}\ntable th:nth-of-type(2) {\n    width: 30%;\n}\ntable th:nth-of-type(3) {\n    width: 40%;\n}\n"]}]},"headings":[{"value":"Functions","id":"functions","depth":1},{"value":"initializeSDK","id":"initializesdk","depth":2},{"value":"Example","id":"example","depth":3},{"value":"startIdentityVerification","id":"startidentityverification","depth":2},{"value":"Parameters","id":"parameters","depth":3},{"value":"Example","id":"example-1","depth":3},{"value":"setLogLevel","id":"setloglevel","depth":2},{"value":"Parameters","id":"parameters-1","depth":3},{"value":"Verification status events","id":"verification-status-events","depth":2}],"frontmatter":{"seo":{"title":"Functions"}},"lastModified":"2026-07-01T10:31:02.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/sdk-ref/react-native-ts-idv/functions","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}