Customisation

Truecaller SDK provides you with capabilities to configure the following :

Consent Mode To switch between a full screen view or an overlay view of the truecaller profile verification view Possible values for Consent Mode :

// To display the user's Truecaller profile in a popup view
TrueSdkScope.CONSENT_MODE_POPUP
// To display the user's Truecaller profile in a full screen view
TrueSdkScope.CONSENT_MODE_FULLSCREEN

Footer Type To configure the CTA present at the bottom Possible values for Footer Type :

// To use "USE DIFFERENT NUMBER" CTA at the bottom of the user profile view
TrueSdkScope.FOOTER_TYPE_CONTINUE
// To use "SKIP" CTA at the bottom of the user profile view
TrueSdkScope.FOOTER_TYPE_SKIP

Consent Title Options To provide appropriate context of verification to the truecaller user Possible values for the Title option :

// To use "Login" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_LOG_IN
// To use "Signup" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_SIGN_UP
// To use "Sign in" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_SIGN_IN
// To use "Verify" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_VERIFY
// To use "Register" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_REGISTER
// To use "Get Started" as the contextual text in the user profile view title
TrueSdkScope.SDK_CONSENT_TITLE_GET_STARTED

Language To customise the profile dialog in any of the supported Indian languages To do so, add the following lines before calling the "getUserProfile()" method as mentioned in the previous step

Locale locale = new Locale("ru");
TrueSDK.getInstance().setLocale(locale);

Currently supported languages :

- English (en)
- Hindi (hi)
- Marathi (mr)
- Telugu (te)
- Malayalam (ml)
- Urdu (ur)
- Punjabi (pa)
- Tamil (ta)
- Bengali (bn)
- Kannada (kn)

NOTE : In case the input locale is not supported, the profile will by default be shown in English language