forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different EXFaceDetectorManagers for different EXCamera instances (…
…expo#2998) fbshipit-source-id: 54d3228
- Loading branch information
Showing
6 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
.../expo-face-detector-interface/ios/EXFaceDetectorInterface/EXFaceDetectorManagerProvider.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright © 2018 650 Industries. All rights reserved. | ||
|
||
#import <EXFaceDetectorInterface/EXFaceDetectorManager.h> | ||
|
||
@protocol EXFaceDetectorManagerProvider | ||
|
||
- (id<EXFaceDetectorManager>)createFaceDetectorManager; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/expo-face-detector/ios/EXFaceDetector/EXFaceDetectorManagerProvider.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2018-present 650 Industries. All rights reserved. | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <EXCore/EXInternalModule.h> | ||
#import <EXFaceDetectorInterface/EXFaceDetectorManagerProvider.h> | ||
|
||
@interface EXFaceDetectorManagerProvider : NSObject <EXInternalModule, EXFaceDetectorManagerProvider> | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
modules/expo-face-detector/ios/EXFaceDetector/EXFaceDetectorManagerProvider.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2018-present 650 Industries. All rights reserved. | ||
|
||
#import <EXFaceDetector/EXFaceDetectorManagerProvider.h> | ||
#import <EXFaceDetector/EXFaceDetectorManager.h> | ||
|
||
@implementation EXFaceDetectorManagerProvider | ||
|
||
EX_REGISTER_MODULE(); | ||
|
||
+ (const NSArray<Protocol *> *)exportedInterfaces { | ||
return @[@protocol(EXFaceDetectorManagerProvider)]; | ||
} | ||
|
||
- (id<EXFaceDetectorManager>)createFaceDetectorManager { | ||
return [[EXFaceDetectorManager alloc] init]; | ||
} | ||
|
||
@end |