Truecaller SDK provides you with capabilities to configure the following :
If you are already using Truecaller SDK with pop-up variant of the verification screen, you can upgrade to the bottom sheet layout by simply making changes to the configuration options in your TruecallerSdkScope object.
Refer to the below section for details on all the customisation capabilities and the possible values you may set
Contextual text prefix [ .loginTextPrefix() ]
To provide appropriate context of verification to the Truecaller user, use one of the below mentioned TruecallerSdkScope values to show the corresponding message to the user
Button text options [ .ctaTextPrefix() ]
To set the prefix on the CTA button
Button text to use
TruecallerSdkScope value
Use
TruecallerSdkScope.CTA_TEXT_PREFIX_USE
Continue with
TruecallerSdkScope.CTA_TEXT_PREFIX_CONTINUE_WITH
Proceed with
TruecallerSdkScope.CTA_TEXT_PREFIX_PROCEED_WITH
Button shape [ .buttonShapeOptions() ]
To chose the shape of the CTA button
Button shape
TruecallerSdkScope value
Round
TruecallerSdkScope.BUTTON_SHAPE_ROUNDED
Rectangle
TruecallerSdkScope.BUTTON_SHAPE_RECTANGLE
Footer CTA text [ .footerType() ]
To configure the text of the additional footer CTA present at the bottom
Footer CTA string
TruecallerSdkScope value
Use another number
TruecallerSdkScope.FOOTER_TYPE_CONTINUE
Use another method
TruecallerSdkScope.FOOTER_TYPE_ANOTHER_METHOD
Enter details manually
TruecallerSdkScope.FOOTER_TYPE_MANUALLY
Later
TruecallerSdkScope.FOOTER_TYPE_LATER
Privacy policy text [ .privacyPolicyUrl() ]
To add your privacy policy link on the verification screen ( optional ), you can configure the respective hyperlink as mentioned below
Terms of service text [ .termsOfServiceUrl() ]
To add your terms of service link on the verification screen ( optional ), you can configure the respective hyperlink as mentioned below
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
Currently supported languages :
Language
locale value to use
english
en
hindi
hi
marathi
mr
telugu
te
malayalam
ml
urdu
ur
punjabi
pa
tamil
ta
bengali
bn
kannada
kn
swahili
sw
arabic
ar
NOTE : In case the input locale is not supported, the profile will by default be shown in English language