After checking isUsable, you can show the Truecaller profile verification dialog
anywhere in your app flow by calling the following method
The result will be returned asynchronously via streamCallbackData stream
Once you initialise the Truecaller SDK using the initializeSDK method, and if you are using
the SDK for verification of only Truecaller users ( by setting the sdkOptions scope as
TruecallerSdkScope.SDK_OPTION_WITHOUT_OTP, you can check if the Truecaller app is
present on the user's device or whether the user has a valid account state or not by using
the following method
To customise the look and feel of the verification consent screen as per your app theme, add
the following lines before calling the getProfile method.
NOTE: It's not applicable for TruecallerSdkScope.CONSENT_MODE_BOTTOMSHEET
This method has to be called before anything else. It initializes the SDK with the
customizable options which are all optional and have default values as set below in the method
This method will initiate manual verification of phoneNumber asynchronously for Indian
numbers only so that's why default countryISO is set to "IN".
The result will be returned asynchronously via streamCallbackData stream
Check TruecallerSdkCallbackResult to understand the different verifications states.
This method may lead to verification with a SMS Code (OTP) or verification with a CALL,
or if the user is already verified on the device, will get the call back as
TruecallerSdkCallbackResult.verifiedBefore in streamCallbackData
To customise the profile dialog in any of the supported Indian languages, add the
following lines before calling the getProfile method with locale of your choice.
NOTE: Default value is en