Simplified Launch
This section shows practical examples (in Swift) for integrating and using the Facephi SDK in iOS mobile applications, adapted to the most common verification flows.
Initialize the SDK
import core
import sdk
import trackingComponent
...
let trackingController = TrackingController(
trackingError: { trackingError in
self.log("TRACKING ERROR: \(trackingError)")
},
enableLocation: false)
SDKController.shared.initSdk(licensingUrl: SdkConfigurationManager.LICENSING_URL, apiKey: SdkConfigurationManager.APIKEY_LICENSING, output: { sdkResult in
if sdkResult.finishStatus == .STATUS_OK {
self.log("Automatic License set correctly")
} else {
self.log("An error occurred while trying to obtain the License: \(sdkResult.errorType)")
}
}, trackingController: trackingController)
Start operation
Component launch
Last updated