Skip to content

Initialization

To start using the Face SDK, you need to initialize it the following way:

FaceSDK.Instance().init(context) { status: Boolean, exception: InitException? -> {

} }
FaceSDK.Instance().init(context, (status, exception) -> { });
FaceSDK.service.initialize { success, error in

}
[[RFSFaceSDK service] initializeWithCompletion:^(BOOL success, NSError * _Nullable error) {

}];

Deinitialization

After the SDK is initialized and running, it may consume hundreds of megabytes. In the most cases, once the processing is finished, there is no need to keep the SDK in the memory. To prevent excessive memory consumption, you can deinitialize the SDK after using:

FaceSDK.Instance().deinit()
FaceSDK.Instance().deinit();
FaceSDK.service.deinitialize()
[[RFSFaceSDK service] deinitialize];