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

  • To display the user's Truecaller profile in a popup view :

TruecallerSdkScope.CONSENT_MODE_POPUP
  • To display the user's Truecaller profile in a full screen view :

TruecallerSdkScope.CONSENT_MODE_FULLSCREEN

Footer Type To configure the text of the additional CTA present at the bottom

  • To show "USE ANOTHER MOBILE NUMBER" as the bottom :

TruecallerSdkScope.FOOTER_TYPE_CONTINUE
  • To show "SKIP" at the bottom :

TruecallerSdkScope.FOOTER_TYPE_SKIP

Consent Title Options To provide appropriate context of verification to the truecaller user

  • To show "Login" as the contextual text in the title of the user profile view :

TruecallerSdkScope.SDK_CONSENT_TITLE_LOG_IN
  • To show "Signup" as the contextual text in the title of the user profile view :

TruecallerSdkScope.SDK_CONSENT_TITLE_SIGN_UP
  • To show "Sign In" as the contextual text in the title of the user profile view :

TruecallerSdkScope.SDK_CONSENT_TITLE_SIGN_IN
  • To show "Verify" as the contextual text in the title of the user profile view :

TruecallerSdkScope.SDK_CONSENT_TITLE_VERIFY
  • To show "Register" as the contextual text in the title of the user profile view :

TruecallerSdkScope.SDK_CONSENT_TITLE_REGISTER
  • To show "Get Started" as the contextual text in the title of the user profile view :

TruecallerSdkScope.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");
TruecallerSDK.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)
- Swahili (sw)

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