Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ export default class FaceSDK {
static setLocalizationDictionary(dictionary: Record<string, string>, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static setRequestHeaders(headers: Record<string, string>, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static setCustomization(config: Customization, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static isInitialized(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static isInitialized(successCallback: (response: boolean) => void, errorCallback?: (error: string) => void): void
static initialize(config: InitConfig | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static deinitialize(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static startFaceCapture(config: FaceCaptureConfig | null, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
Expand Down Expand Up @@ -1540,4 +1540,4 @@ export default class FaceSDK {
static getPersonsInGroup(groupId: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static getPersonsInGroupForPage(groupId: string, page: number, size: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
static searchPerson(searchPersonRequest: SearchPersonRequest, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
}
}
6 changes: 4 additions & 2 deletions ios/RNFaceApi.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ - (void) deinitialize {

- (void) startFaceCapture:(NSDictionary*)config :(RFSWCallback)callback {
dispatch_async(dispatch_get_main_queue(), ^{
[RFSFaceSDK.service presentFaceCaptureViewControllerFrom:[UIApplication sharedApplication].windows.lastObject.rootViewController
UIViewController *currentViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
[RFSFaceSDK.service presentFaceCaptureViewControllerFrom:currentViewController
animated:true
configuration:[RFSWConfig faceCaptureConfigFromJSON:config]
onCapture:[self faceCaptureCompletion:callback]
Expand All @@ -150,7 +151,8 @@ - (void) stopFaceCapture {

- (void) startLiveness:(NSDictionary*)config :(RFSWCallback)callback {
dispatch_async(dispatch_get_main_queue(), ^{
[RFSFaceSDK.service startLivenessFrom:[UIApplication sharedApplication].windows.lastObject.rootViewController
UIViewController *currentViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
[RFSFaceSDK.service startLivenessFrom:currentViewController
animated:true
configuration:[RFSWConfig livenessConfigFromJSON:config]
onLiveness:[self livenessCompletion:callback]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@regulaforensics/react-native-face-api",
"version": "6.4.471",
"version": "6.4.472",
"description": "React Native module for compairing faces using phone`s camera",
"main": "index.js",
"scripts": {
Expand Down