-
Notifications
You must be signed in to change notification settings - Fork 10
Upgrading to SDK v12.x
Braden edited this page Jul 25, 2024
·
1 revision
SDK v12 drops support for iOS 12 and now only supports iOS 13+.
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];