Skip to content

Upgrading to SDK v12.x

Braden edited this page Jul 25, 2024 · 1 revision

Deployment Target

SDK v12 drops support for iOS 12 and now only supports iOS 13+.

Objective-C integrations can now cancel

It is now possible to cancel the SDK programmatically from your app when using Objective-C like so if you keep a reference to IPSession:

session = [IProov launchWithStreamingURL: /* your URL */
                                   token: /* your token */
                                 options:[IPOptions new]
                              connecting:^{
    } connected:^{
    } processing:^(double progress, NSString * _Nonnull message) {
    } success:^(IPSuccessResult * _Nonnull result) {
    } canceled:^(enum IPCanceler canceler) {
        NSLog(@"received canceled");
    } failure:^(IPFailureResult * _Nonnull result) {
    } error:^(NSError * _Nonnull error) {
    }];
    
...

BOOL hasCanceled = [session cancel];