Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›Getting Started

MobbID iOS SDK

  • Requirements

Getting Started

  • Licenses
  • Configuration
  • Configure Face module

Biometric Operations

  • Code Examples

Migration Guides

  • Migration Guide from v6.5.4 to v7.0.0

Information

  • Changelog

Configure Face module

This section explains how to configure and use the MobbID Face module.

Step 1: Create MIDFaceView

You will need to use the MIDFaceView class in your project. This class is used to manage feedback messages during facial detection as well as to serve as the host for the camera surface.

CGRect frame = <frame>;
MIDFaceViewBuilder *builder = [[MIDFaceViewBuilder alloc] init];
[builder setFrame:frame];
NSError *error;
MIDFaceView *faceView = [builder buildAndReturnError:&error];
// Now we can add faceView to your view hierarchy to display it
CGRect frame = <frame>
let faceViewBuilder = MIDFaceViewBuilder()
faceViewBuilder.set(frame: frame)
let faceView = try faceViewBuilder.build()
// Now we can add faceView to your view hierarchy to display it

Step 2: Configure MIDFaceSDK

A MIDFaceSDK must be created to prepare the MIDFaceView for the recognition.

MIDFaceLivenessDetectionMode *livenessDetectionMode = <livenessDetectionMode>;
if (livenessDetectionMode == MIDFaceLivenessDetectionMode.none) {
    MIDFaceSDK *faceSDK = [[[[[MIDFaceSDKBuilder alloc] init] targetView:faceView] addFeedbackListener:faceView] build];
}
else {
    MIDFaceSDK *faceSDK = [[[[[[[MIDFaceSDKBuilder alloc] init] targetView:faceView] addFeedbackListener:faceView] addLivenessListener:faceView] livenessDetectionMode:livenessDetectionMode] build];

}

let faceSDKBuilder = MIDFaceSDKBuilder()
faceSDKBuilder.targetView(faceView)
faceSDKBuilder.addFeedbackListener(faceView)
let livenessDetectionMode = <MIDFaceLivenessDetectionMode>
switch livenessDetectionMode {
case .none:
    break // No additional configuration needed
case .headMovement, .headPassiveVideo, .headPassiveImage:
    faceSDKBuilder.addLivenessListener(faceView)
    faceSDKBuilder.livenessDetectionMode(livenessDetectionMode)
default:
    fatalError("Unexpected MIDFaceLivenessDetectionMode: \(livenessDetectionMode.rawValue)")
}
let faceSDK = faceSDKBuilder.build()

Step 3: Start a face biometric method

You can now start using the facial biometric method of your choice. You will need to configure a set of parameters and callbacks specific to each method.

[faceSDK startRecognitionMode:CMIDRecognitionMode.verification
                   parameters:parameters
            operationListener:listener];
faceSDK.start(recognitionMode: recognitionMode,
              parameters: recognitionParameters,
              operationListener: listener)

You will find more detailed information on how to use the faceSDK.start(...) method, as well as the parameters associated with each method, in the code examples section.

← ConfigurationCode Examples →
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2025 Mobbeel Solutions SL