Set Extra Parameters
Esta función te permite personalizar el tema de la interfaz de usuario en los diferentes flujos del SDK de FaceTec mediante los metadatos enviados en formato JSON. Estos metadatos te permiten configurar las imágenes de los íconos, los colores de los recuadros y las fuentes de los textos, además de sus estilos, colores y tamaños.
El SDK de FaceTec también permite la personalización de los textos de la interfaz del usuario mediante la edición o adición de archivos de texto en el binario de la app. Ponte en contacto con el Administrador de cuentas técnicas para obtener más información.
Configuración del parámetro
Esta función requiere que envíes los metadatos en formato JSON en el valor del registro 390 (parámetros de entrada). Una vez que se han definido los parámetros, permanecerán activos durante la ejecución de la app. Cada vez que se invoca correctamente esta función, se actualizan todos los parámetros enviados en JSON.
Consulta la documentación de FaceTec para obtener más información sobre los parámetros de personalización disponibles.
Nota
Para volver a los parámetros establecidos por defecto, invoca esta función y deja el valor del registro 390 vacío.
{ "AndroidCustomization":{ "cancelButtonCustomization":{ "cancelButtonCustomImage":[Text with the image id], "cancelButtonLocation":[TOP_RIGHT|TOP_LEFT|DISABLED] }, "frameCustomization":{ "backgroundColor":[Color in Hexadecimal], "borderColor":[Color in Hexadecimal], "cornerRadius":[String with Integer value], "elevation":[String with Integer value] }, "overlayCustomization":{ "showBrandingImage":[true|false], "brandingImage":[Text with the image id], "backgroundColor":[Color in Hexadecimal] }, "feedbackCustomization":{ "backgroundColors":[Color in Hexadecimal], "cornerRadius":[String with Integer value], "textColor": [Color in Hexadecimal], "textFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "textSize":[String with Integer value] }, "ovalCustomization":{ "progressColor1":[Color in Hexadecimal], "progressColor2":[Color in Hexadecimal], "progressStrokeWidth":[String with Integer value], "strokeWidth":[String with Integer value], "strokeColor": [Color in Hexadecimal] }, "guidanceCustomization":{ "readyScreenHeaderTextColor":[Color in Hexadecimal], "readyScreenHeaderFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "readyScreenHeaderTextSize":[String with Integer value], "readyScreenSubtextTextColor":[Color in Hexadecimal], "readyScreenSubtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "readyScreenSubtextTextSize":[String with Integer value], "readyScreenTextBackgroundColor":[Color in Hexadecimal], "retryScreenHeaderTextColor":[Color in Hexadecimal], "retryScreenHeaderFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "retryScreenHeaderTextSize":[String with Integer value], "retryScreenSubtextTextColor":[Color in Hexadecimal], "retryScreenSubtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "retryScreenSubTextSize":[String with Integer value], "retryScreenImageBorderColor":[Color in Hexadecimal], "retryScreenOvalStrokeColor":[Color in Hexadecimal], "retryScreenSubtextTextSize":[String with Integer value], "enableRetryScreenBulletedInstructions":[true|false], "buttonBorderColor":[Color in Hexadecimal], "buttonBorderWidth":[String with Integer value], "buttonCornerRadius":[String with Integer value], "buttonRelativeWidth":[String with Float value], "buttonTextNormalColor":[Color in Hexadecimal], "buttonTextHighlightColor":[Color in Hexadecimal], "buttonTextDisabledColor":[Color in Hexadecimal], "buttonBackgroundNormalColor":[Color in Hexadecimal], "buttonBackgroundHighlightColor":[Color in Hexadecimal], "buttonBackgroundDisabledColor":[Color in Hexadecimal], "buttonFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "buttonTextSize":[String with Integer value], "backgroundColors":[Color in Hexadecimal], "foregroundColor":[Color in Hexadecimal], "headerFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "headerTextSize":[String with Integer value], "subtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "subtextTextSize":[String with Integer value] }, "resultScreenCustomization":{ "foregroundColor":[Color in Hexadecimal], "backgroundColors":[Color in Hexadecimal], "messageFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name] }, "messageTextSize":[String with Integer value], "messageTextSpacing":[String with Float value], "activityIndicatorColor":[Color in Hexadecimal], "customActivityIndicatorImage":[Text with the image id], "customActivityIndicatorRotationInterval":[String with Integer value], "resultAnimationForegroundColor":[Color in Hexadecimal], "resultAnimationBackgroundColor":[Color in Hexadecimal], "resultAnimationSuccessBackgroundImage":[Text with the image id], "resultAnimationUnsuccessBackgroundImage":[Text with the image id], "animationRelativeScale":[String with Float value], "showUploadProgressBar":[true|false], "uploadProgressTrackColor":[Color in Hexadecimal], "uploadProgressFillColor":[Color in Hexadecimal] } }, "iOSCustomization":{ "cancelButtonCustomization":{ "cancelButtonCustomImage":[Text with the image id], "cancelButtonLocation":[TOP_RIGHT|TOP_LEFT|DISABLED] }, "frameCustomization":{ "backgroundColor":[Color in Hexadecimal], "borderColor":[Color in Hexadecimal], "cornerRadius":[String with Integer value] }, "overlayCustomization":{ "showBrandingImage":[true|false], "brandingImage":[Text with the image id], "backgroundColor":[Color in Hexadecimal], "blurEffectOpacity":[String with Float value], "blurEffectStyle":[DARK|EXTRA_LIGHT|LIGHT|PROMINENT|REGULAR] }, "feedbackCustomization":{ "backgroundColors":[Color in Hexadecimal], "cornerRadius":[String with Integer value], "textColor":[Color in Hexadecimal], "textFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] } }, "ovalCustomization":{ "progressColor1":[Color in Hexadecimal], "progressColor2":[Color in Hexadecimal], "progressStrokeWidth":[Text with the font name], "strokeWidth":[String with Integer value], "strokeColor":[Color in Hexadecimal] }, "guidanceCustomization":{ "readyScreenHeaderTextColor":[Color in Hexadecimal], "readyScreenHeaderFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "readyScreenSubtextTextColor":[Color in Hexadecimal], "readyScreenSubtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "readyScreenTextBackgroundColor":[Color in Hexadecimal], "retryScreenHeaderTextColor":[Color in Hexadecimal], "retryScreenHeaderFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "retryScreenSubtextTextColor":[Color in Hexadecimal], "retryScreenSubtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "retryScreenImageBorderColor":[Color in Hexadecimal], "retryScreenOvalStrokeColor":[Color in Hexadecimal], "enableRetryScreenBulletedInstructions":[true@false], "buttonBorderColor":[Color in Hexadecimal], "buttonBorderWidth":[String with Integer value], "buttonCornerRadius":[String with integer value], "buttonRelativeWidth":[String with Float value], "buttonTextNormalColor":[Color in Hexadecimal], "buttonTextHighlightColor":[Color in Hexadecimal], "buttonTextDisabledColor":[Color in Hexadecimal], "buttonBackgroundNormalColor":[Color in Hexadecimal], "buttonBackgroundHighlightColor":[Color in Hexadecimal], "buttonBackgroundDisabledColor":[Color in Hexadecimal], "buttonFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "backgroundColors":[Color in Hexadecimal], "foregroundColor":[Color in Hexadecimal], "headerFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] }, "subtextFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":[String with Float value] } }, "resultScreenCustomization":{ "foregroundColor":[Color in Hexadecimal], "backgroundColors":[Color in Hexadecimal], "messageFont":{ "textFontStyle":[BOLD|BOLD_ITALIC|ITALIC|NORMAL], "textFontFamilyName":[Text with the font name], "fontSize":"" }, "messageTextSpacing":[String with Float value], "activityIndicatorColor":[Color in Hexadecimal], "customActivityIndicatorImage":[Text with the image id], "customActivityIndicatorRotationInterval":[String with Integer value], "resultAnimationForegroundColor":[Color in Hexadecimal], "resultAnimationBackgroundColor":[Color in Hexadecimal], "resultAnimationSuccessBackgroundImage":[Text with the image id], "resultAnimationUnsuccessBackgroundImage":[Text with the image id], "animationRelativeScale":[String with Float value], "showUploadProgressBar":[true|false], "uploadProgressTrackColor":[Color in Hexadecimal], "uploadProgressFillColor":[Color in Hexadecimal] } } }
{ "AndroidCustomization":{ "cancelButtonCustomization":{ "cancelButtonCustomImage":"facetec_cancel_button", "cancelButtonLocation":"TOP_RIGHT" }, "frameCustomization":{ "backgroundColor":"#FFFFFF", "borderColor":"", "cornerRadius":"20", "elevation":"20" }, "overlayCustomization":{ "showBrandingImage":"false", "brandingImage":"", "backgroundColor":"#AA000000" }, "feedbackCustomization":{ "backgroundColors":"#32AFDE", "cornerRadius":"20", "textColor":"#FFFFFF", "textFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "textSize":"25" }, "ovalCustomization":{ "progressColor1":"#32AFDE", "progressColor2":"#32AFDE", "progressStrokeWidth":"4", "strokeWidth":"4", "strokeColor":"#32AFDE" }, "guidanceCustomization":{ "readyScreenHeaderTextColor":"#32AFDE", "readyScreenHeaderFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "readyScreenHeaderTextSize":"25", "readyScreenSubtextTextColor":"#017894", "readyScreenSubtextFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "readyScreenSubtextTextSize":"16", "readyScreenTextBackgroundColor":"#00000000", "retryScreenHeaderTextColor":"#32AFDE", "retryScreenHeaderFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "retryScreenHeaderTextSize":"22", "retryScreenSubtextTextColor":"#017894", "retryScreenSubtextFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "retryScreenSubTextSize":"", "retryScreenImageBorderColor":"#32AFDE", "retryScreenOvalStrokeColor":"#32AFDE", "retryScreenSubtextTextSize":"25", "enableRetryScreenBulletedInstructions":"false", "buttonBorderColor":"", "buttonBorderWidth":"", "buttonCornerRadius":"40", "buttonRelativeWidth":"", "buttonTextNormalColor":"#FFFFFF", "buttonTextHighlightColor":"#FFFFFF", "buttonTextDisabledColor":"#FFFFFF", "buttonBackgroundNormalColor":"#F39655", "buttonBackgroundHighlightColor":"#F39655", "buttonBackgroundDisabledColor":"#F39655", "buttonFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "buttonTextSize":"", "backgroundColors":"", "foregroundColor":"25", "headerFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "headerTextSize":"", "subtextFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "subtextTextSize":"" }, "resultScreenCustomization":{ "foregroundColor":"#32AFDE", "backgroundColors":"", "messageFont":{ "textFontStyle":"", "textFontFamilyName":"" }, "messageTextSize":"25", "messageTextSpacing":"25", "activityIndicatorColor":"#32AFDE", "customActivityIndicatorImage":"", "customActivityIndicatorRotationInterval":"", "resultAnimationForegroundColor":"#FFFFFF", "resultAnimationBackgroundColor":"#32AFDE", "resultAnimationSuccessBackgroundImage":"#32AFDE", "resultAnimationUnsuccessBackgroundImage":"#32AFDE", "animationRelativeScale":"#32AFDE", "showUploadProgressBar":"false", "uploadProgressTrackColor":"false", "uploadProgressFillColor":"false" } }, "iOSCustomization":{ "cancelButtonCustomization":{ "cancelButtonCustomImage":"facetec_cancel_button", "cancelButtonLocation":"TOP_RIGHT" }, "frameCustomization":{ "backgroundColor":"", "borderColor":"#00000000", "cornerRadius":"" }, "overlayCustomization":{ "showBrandingImage":"false", "brandingImage":"", "backgroundColor":"", "blurEffectOpacity":"0.35", "blurEffectStyle":"DARK" }, "feedbackCustomization":{ "backgroundColors":"#32AFDE", "cornerRadius":"20", "textColor":"#FFFFFF", "textFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"30" } }, "ovalCustomization":{ "progressColor1":"", "progressColor2":"", "progressStrokeWidth":"", "strokeWidth":"", "strokeColor":"#32AFDE" }, "guidanceCustomization":{ "readyScreenHeaderTextColor":"", "readyScreenHeaderFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "readyScreenSubtextTextColor":"", "readyScreenSubtextFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "readyScreenTextBackgroundColor":"#00000000", "retryScreenHeaderTextColor":"", "retryScreenHeaderFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "retryScreenSubtextTextColor":"", "retryScreenSubtextFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "retryScreenImageBorderColor":"", "retryScreenOvalStrokeColor":"#32AFDE", "enableRetryScreenBulletedInstructions":"false", "buttonBorderColor":"", "buttonBorderWidth":"", "buttonCornerRadius":"40", "buttonRelativeWidth":"", "buttonTextNormalColor":"#FFFFFF", "buttonTextHighlightColor":"", "buttonTextDisabledColor":"", "buttonBackgroundNormalColor":"#F39655", "buttonBackgroundHighlightColor":"", "buttonBackgroundDisabledColor":"", "buttonFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "backgroundColors":"#32AFDE", "foregroundColor":"", "buttonTextSize":"25", "headerFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "subtextFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" } }, "resultScreenCustomization":{ "foregroundColor":"#32AFDE", "backgroundColors":"", "messageFont":{ "textFontStyle":"", "textFontFamilyName":"", "fontSize":"" }, "messageTextSize":"25", "messageTextSpacing":"", "activityIndicatorColor":"#32AFDE", "customActivityIndicatorImage":"", "customActivityIndicatorRotationInterval":"", "resultAnimationForegroundColor":"#FFFFFF", "resultAnimationBackgroundColor":"#32AFDE", "resultAnimationSuccessBackgroundImage":"#32AFDE", "resultAnimationUnsuccessBackgroundImage":"#32AFDE", "animationRelativeScale":"#32AFDE", "showUploadProgressBar":"false", "uploadProgressTrackColor":"false", "uploadProgressFillColor":"false" } } }
ID de la función
Registro | Valor |
---|---|
110 | 5 |
Registros de entrada
Registro | Descripción | Obligatorio | Valor |
---|---|---|---|
390 | Metadatos de personalización del tema en formato JSON | No | [Pega el JSON personalizado en este campo] |
Registros de salida
Registro | Descripción | Valor | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
112 | Resultado de la Call |
|