向Cordova AppDelegate iOS添加额外的代理

向Cordova AppDelegate iOS添加额外的代理,ios,cordova,cordova-plugins,Ios,Cordova,Cordova Plugins,我正在构建一个插件,将外部框架集成到Cordova,根据文档,我需要在我的应用程序的AppDelegate.h中添加一个新的委托 如果我正在开发本机应用程序,我只需要导入该文件并在其中包含委托 #import <MySpinServerSDK/MySpinServerSDK.h> @interface AppDelegate : UIResponder <UIApplicationDelegate, MySpinServerSDKDelegate> #导入 @接口App

我正在构建一个插件,将外部框架集成到Cordova,根据文档,我需要在我的应用程序的
AppDelegate.h
中添加一个新的委托

如果我正在开发本机应用程序,我只需要导入该文件并在其中包含委托

#import <MySpinServerSDK/MySpinServerSDK.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate, MySpinServerSDKDelegate>
#导入
@接口AppDelegate:UIResponder
如何使用插件结构向Cordova iOS应用程序添加额外的代理


我在插件(外部框架和plist配置)中做了所有准备,但不确定是否可以使用cordova插件创建此类集成。

您可以参考这些cordova插件作为示例:或

请注意应用程序事件开发人员如何在其Cordova插件中使用加号命名新文件:AppDelegate+AppAppAppEvent.h和AppDelegate+AppAppAppAppEvent.m。在头文件中,开发人员在将其新类声明为AppDelegate时使用了类别“APPAppEvent”:

@interface AppDelegate (APPAppEvent)

@end
深度链接开发者也做了同样的事情:

@interface AppDelegate (CULPlugin)

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler;

@end

谢谢你的回答。。。应用程序事件插件帮助很大…=)