UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

58 lines (52 loc) 1.81 kB
"use strict"; /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ import { PromptOptions } from './PromptOptions'; /** * Defines the elements of the biometric prompt (title, description and cancel button text). * * @see {@link BiometricUserVerificationHandler.listenForOsCredentials} */ export class BiometricPromptOptions extends PromptOptions { /** * The title to be used to prompt the user. * * **IMPORTANT** \ * Prompt title is supported only on Android and is ignored on iOS. */ /** * The cancel button text. */ /** * The fallback button text. * * If set to empty string, the button will be hidden. A default title "Enter Password" is used * when this property is unspecified. * * **IMPORTANT** \ * Fallback button text is supported only on iOS and is ignored on Android. */ /** * Default constructor for {@link BiometricPromptOptions}. * * @param title the title to be used to prompt the user. * @param cancelButtonText the cancel button text. * @param description the optional description to be used to prompt the user. * @param fallbackButtonText the fallback button text. * @returns the created {@link BiometricPromptOptions} instance. */ static create(title, cancelButtonText, description, fallbackButtonText) { return new BiometricPromptOptionsImpl(title, cancelButtonText, description, fallbackButtonText); } } export class BiometricPromptOptionsImpl extends BiometricPromptOptions { constructor(title, cancelButtonText, description, fallbackButtonText) { super(); this.title = title; this.description = description; this.cancelButtonText = cancelButtonText; this.fallbackButtonText = fallbackButtonText; } } //# sourceMappingURL=BiometricPromptOptions.js.map