@tef-novum/webview-bridge
Version:
JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.
29 lines (28 loc) • 2.08 kB
TypeScript
export declare const AllowMeGenericError = 500;
export declare const AllowMeUnauthorizedError = 401;
export declare const AllowMeSetupSdkError = 1001;
export declare const AllowMeTimeoutProcessingError = 1002;
export declare const AllowMeApiKeyError = 1003;
export declare const AllowMeInstanceCreationError = 1004;
export declare const AllowMeBiometricsTimeoutError = 1005;
export declare const AllowMeBiometricsSetupError = 1006;
export declare const AllowMeBiometricsCameraError = 1007;
export declare const AllowMeBiometricsCapturingError = 1008;
export declare const AllowMeBiometricsResultError = 1009;
export declare const AllowMeBiometricsCancelledByUserError = 1010;
export declare const AllowMeBiometricsInvalidImagesError = 1011;
export declare const AllowMeBiometricsCameraPermissionError = 1012;
export declare const AllowMeCanNotOpenFrontCameraError = 1013;
export declare const AllowMeGooglePayServicesError = 1014;
export declare const AllowMeFaceDetectionError = 1015;
export declare const AllowMeProviderError = 1016;
export declare const AllowMeCanNotSaveImageError = 1017;
export declare type AllowMeErrorCode = typeof AllowMeGenericError | typeof AllowMeUnauthorizedError | typeof AllowMeSetupSdkError | typeof AllowMeTimeoutProcessingError | typeof AllowMeApiKeyError | typeof AllowMeInstanceCreationError | typeof AllowMeBiometricsTimeoutError | typeof AllowMeBiometricsSetupError | typeof AllowMeBiometricsCameraError | typeof AllowMeBiometricsCapturingError | typeof AllowMeBiometricsResultError | typeof AllowMeBiometricsCancelledByUserError | typeof AllowMeBiometricsInvalidImagesError | typeof AllowMeBiometricsCameraPermissionError | typeof AllowMeCanNotOpenFrontCameraError | typeof AllowMeGooglePayServicesError | typeof AllowMeFaceDetectionError | typeof AllowMeProviderError | typeof AllowMeCanNotSaveImageError;
export declare type AllowMeError = {
code: AllowMeErrorCode;
description?: string;
};
export declare const requestAllowMeBiometrics: () => Promise<{
result?: string;
images: Array<string>;
}>;