flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
130 stars 139 forks source link

I need help with translating this to swift so i can add it to my flutter app #128

Open miracle101000 opened 2 years ago

miracle101000 commented 2 years ago

Please I am working on flutter and came across this piece of code to be added into my app but My app is in swift language and this is objective-c. Can someone help me translate this line of code

#import <CallKeep.h>

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler {
    return [CallKeep application:application
                        continueUserActivity:userActivity
                        restorationHandler:restorationHandler];
}