The Contis SDK has been developed to incorporate theming options for client applications – so that all SDK UI screens appear in the client’s native application colour schemes and branding. The theming function is required across the SCA for both the Android and iOS platform, i.e. both the RegisterDevice and DoSCA methods have theme as parameter, which the client needs to provide to apply their branding to the SDK.
Important! Please note that all theming parameters for both Android and iOS are mandatory.
UI screen with the required parameters in place
Android AppParameters required for theming are as follows:
- TitleFontSize, TitleFontStyle
- DescriptionFontSize, DescriptionFontStyle
- EditFieldTextFontSize, EditFieldTextFontStyle
- ButtonFontSize, ButtonFontStyle
public SDKTheme(int AppLogo, int PrimaryColor, int SecondaryColor, int PrimaryButtonTextColor, int SecondaryButtonTextColor, int TitleFontSize,Typeface TitleFontStyle, int DescriptionFontSize, Typeface DescriptionFontStyle, int EditFieldTextFontSize, Typeface editFieldTextFontStyle, int ButtonFontSize, Typeface ButtonFontStyle, ContisListener ContisListener)
iOS AppParameters required for theming are as follows:
Public Init SDKTheme(AppLogo : UIImage, PrimaryColor : UIColor, SecondaryColor : UIColor, PrimaryButtonTextColor : UIColor, SecondaryButtonTextColor : UIColor, TitleFont : UIFont, DescriptionFont : UIFont, ButtonFont : UIFont, EditFieldTextFont : UIFont, ContisListener : ContisListener)