1.0.8 • Published 4 months ago

faceliveness-ionic v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

faceliveness-ionic

Plugin Ionic FaceLiveness

Install

npm install faceliveness-ionic
npx cap sync

API

Configure(...)

Configure(options: ConfigureOptions) => Promise<void>

Allows to cofigure the FaceLivenessPlugin.

You only need to call it once, but you must call it before other methods in this class.

ParamType
optionsConfigureOptions

startSDK(...)

startSDK(options: LivenessStartOptions, callback: GenericCallback) => Promise<string>

Start the FaceLiveness SDK.

ParamTypeDescription
optionsLivenessStartOptionsOptions to start the SDK.
callbackGenericCallbackAllows you to specify a callback and receive the events or any error that happens.

Returns: Promise<string>


Interfaces

ConfigureOptions

PropTypeDescriptionDefault
mobileTokenstringToken to configure the SDK with.
stageCAFStageValuesStage that is related to the token.'prod'
filterFilterValuesFilter to be used.'line-drawing'
useCustomLoadingScreenbooleanUsed to enable a default loading progressbar during loading events. You can set your customized loading screen instead, using the {@link LoadEvent}.false
enableScreenshotsbooleanAndroid Only Used to enable screenshots during the SDK scan. Disabled by default for security reasons.false
imageUrlExpirationTimeTimeValuesUsed to configure an image URL expiration time.'null'

LivenessStartOptions

PropTypeDescription
personIdstringIdentification of the person (E.g.: CPF)

LoadEvent

Simple Load events that hints when there is a loding process happening.

The events following this interface are emmited from the onLoading and onLoaded native callback methods.

PropType
type'loaded' | 'loading'

SuccessEvent

Success event emmited by the onSuccess native callback method.

PropType
type'success'
dataSuccessData

SuccessData

PropTypeDescription
signedResponsestringJWT containing the information related to the FaceAuthenticator/FaceLiveness.

Type Aliases

CAFStageValues

DictionaryValues<typeof CAFStage>

DictionaryValues

Typekeyof Type

FilterValues

DictionaryValues<typeof Filter>

TimeValues

DictionaryValues<typeof Time>

GenericCallback

Callback that allow handling of events that happens during the authentication/liveness process. The error argument will be set when the onCancel and onError native callbacks execute.

(events: LoadEvent | SuccessEvent | null, err?: any): void

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.2

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.1

5 months ago