com-idnow-plugin
v1.0.5
Published
IdNow cordova plugin that exposes the idnow sdk
Downloads
26
Readme
Cordova IdNow plugin
startIdNowSdk
method: initialises the id now sdk by sending the transaction token to the native component and starting the idnow service - passes a string valuesetCompanyId
method: sets the company id to be pass when the sdk is initialized - passes a string valuesetShowVideoOverviewCheck
method: sets if wheter the initial check overview screen should appear in the video ident flow - passes a boolean valuesetAppGoogleRating
method: sets if wheter the app google rating screen will be visible at the end of the indet flow(only for android) - passe a boolean valuesetShowErrorSuccessScreen
method: sets if wheter the completion error or success screnn is shwon at the end of the ident flowsetIdNowLanguage
method: sets the sdk languagepresentModaly
method: sets if the native view controller is presented modally (ios)isTestEnvironment
method: switches between test and live environments
iOS apperance
setDefaultTextColor
Optional color, that replaces the default text color. Default: A nearly black color Recommendation: Should be some kind of a dark color that does not collide with white color.setPrimaryBrandColor:
method: Optional color, that replaces the default brand color. Default: defaultTextColor Used in headlines, checkboxes, links, alerts etc. Recommendation: Should be a color that does not collide with white color.setProceedButtonBackgroundColor:
method: Optional color, that replaces the proceed button background color. Default: An orange colorsetProceedButtonTextColor
method: Optional color, that replaces the proceed button text color. Default value: White colorsetPhotoIdentRetakeButtonBackgroundColor
method: Optional color, that replaces the photo ident retake button background color. Default value: defaultTextColorsetPhotoIdentRetakeButtonTextColor
method: Optional color, that replaces the photo ident retake button text color. Default value: proceedButtonTextColorsetTextFieldColor
method: Optional color, that replaces the default color of textfield backgrounds and borders Default: defaultTextColorsetFailureColor
method: Optional color, that replaces the text color in the result screen, when an identification failed. Default: A red colorsetSuccessColor
method: Optional color, that replaces the text color in the result screen, when an identification was successful. Default: A green colorsetCqcOuterRingColor
method: Optional color that replaces default dark gray for the outer ring indicator on the quality check screen. Default: dark graysetCqcDefaultInnerRingColor
method: Optional color that replaces default light gray for the inner ring indicator on the quality check screen. Default: light graysetCqcPoorQualityInnerColor
method: Optional color that replaces default bright red for the inner ring indicator in case bad network quality on the quality check screen. Default: bright redsetCqcModerateQualityInnerColor
method:Optional color that replaces default bright orange for the inner ring indicator in case moderate network quality on the quality check screen. Default: bright orangesetCqcExcellentQualityInnerColor
method: Optional color that replaces default strong yellow for the inner ring indicator in case excellent network quality on the quality check screen. Default: strong yellow (almost green).setFontNameRegular
method: An optional font name that can be used to replace the regular font used by the SDK. Default: System Font: Helvetica Neue Regular (< iOS 9), San Francisco Regular (>= iOS 9)setFontNameMedium
method: An optional font name that can be used to replace the medium font used by the SDK. Default: System Font: Helvetica Neue Medium (< iOS 9), San Francisco Medium (>= iOS 9)setFontNameLight
method: An optional font name that can be used to replace the light font used by the SDK. Default: System Font: Helvetica Neue Light (< iOS 9), San Francisco Light (>= iOS 9)enableStatusBarStyleLightContent
method: Optional: Forces the light status bar style to match dark navigation bars. If you tint your navigation bar with a dark color by adjusting navigation bar appearance (e.g. a blue color) you can set this value to true. The statusbar style will then be adjusted to light in screens where the navigation bar is visible.
android apperance
Create colors xml and modify the desired colors
example of xml colors in cordova project:
<!-- Used by theme as default color for display and editable texts -->
<color name="text_default">#4A4A4A</color>
<!-- Primary color is used for headlines and links -->
<color name="primary">#F95602</color>
<!-- background color for confirmation/continue button, which is usually placed at the bottom of a screen -->
<color name="proceed_button_background">@color/primary</color>
<!-- "Wiederholen" button when a photo was taken in photo ident -->
<color name="photo_ident_retake_button_background">@color/text_default</color>
<!-- Colors of the result screen -->
<color name="success">#A4AC49</color>
<color name="failure">#E0727A</color>