Skip to content

Session Video Upload Status in iOS

For the iOS platform, you will be required to conform to VideoUploadingDelegate which provides you with a callback that receives transactionId and success (or fail) status on complete uploading. In this example, we will utilize AppDelegate to accomplish delegate:

import FaceSDK

class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        FaceSDK.service.videoUploadingDelegate = self
        return true

extension AppDelegate: VideoUploadingDelegate {
    func videoUploading(forTransactionId transactionId: String, didFinishedWithSuccess success: Bool) {
        print("Video uploading for transactionId = \(transactionId) did finished with success: \(success ? "YES" : "NO")")
#import "AppDelegate.h"
#import <FaceSDK/FaceSDK.h>

@interface AppDelegate () <RFSVideoUploadingDelegate>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    RFSFaceSDK.service.videoUploadingDelegate = self;
    return YES;

- (void)videoUploadingForTransactionId:(NSString *)transactionId didFinishedWithSuccess:(BOOL)success {
    NSLog(@"Video uploading for transactionId = %@ did finished with success: %@", transactionId, (success ? @"YES" : @"NO"));