This file contains hidden or 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
    
  
  
    
  | #import <UIKit/UIKit.h> | |
| #import <VerIDUI/VerIDUI-Swift.h> | |
| #import <VerIDCore/VerIDCore-Swift.h> | |
| @interface CameraView : UIView<VerIDSessionDelegate, VerIDSessionViewDelegate> | |
| @end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | public interface Angle { | |
| float getYaw(); | |
| float getPitch(); | |
| float getRoll(); | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| if [ "true" == ${ALREADYINVOKED:-false} ] | |
| then | |
| echo "RECURSION: Detected, stopping" | |
| else | |
| export ALREADYINVOKED="true" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var apiSecret = "..."; // Alternative way to set your Ver-ID API secret | |
| verid.load(apiSecret, function(){ | |
| // Ver-ID loaded successfully | |
| // You can now run registration, authentication or liveness detection | |
| }, function(){ | |
| // Ver-ID failed to load | |
| }); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var score = veridutils.compareFaceTemplates(template1, template2); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "outcome": 0, // 0 = success | |
| "faces": [ | |
| { | |
| "x": 0.1, // The left coordinate of the face bounding box relative to the image width | |
| "y": 0.3, // The top coordinate of the face bounding box relative to the image height | |
| "width": 0.2, // The width of the face bounding box relative to the image width | |
| "height": 0.5, // The height of the face bounding box relative to the image height | |
| "template": "..." // Template used for face comparison (see below) | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Load Ver-ID before running liveness detection | |
| verid.load(function(){ | |
| // Ver-ID loaded successfully | |
| // Run a liveness detection session | |
| var settings = verid.LivenessDetectionSessionSettings(); | |
| verid.captureLiveFace(settings, function(response) { | |
| // Session finished | |
| if (response.outcome == 0 && response.faces.length > 0) { | |
| var faceTemplate = response.faces[0].template; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | var userId = "myUserId"; // String with an identifier for the user | |
| // Registration | |
| function register() { | |
| var settings = new verid.RegistrationSessionSettings(userId); | |
| settings.showGuide = true; // If you wish the plugin to guide the user through the registration process | |
| settings.showResult = true; // If you wish the plugin to show the result of the session to the user | |
| verid.register(settings, function(response) { | |
| if (response.outcome == 0) { |