且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将额外的委托添加到Cordova AppDelegate iOS

更新时间:2023-12-06 17:06:52

您可以引用以下Cordova插件作为示例:应用程序事件深层链接

You can reference these Cordova Plugins as examples: App-Event or Deep Links

请注意,App Event开发人员如何在其Cordova插件中使用加号命名新文件:AppDelegate + APPAppEvent.h和AppDelegate + APPAppEvent.m.在头文件中,开发人员在将新类声明为AppDelegate时使用了类别"APPAppEvent":

Note how the App Event developer named the new files with a plus sign: AppDelegate+APPAppEvent.h and AppDelegate+APPAppEvent.m in his Cordova plugin. In the header file, the developer used a category "APPAppEvent" while declaring his new class as an AppDelegate:

@interface AppDelegate (APPAppEvent)

@end

Deep Links开发人员做了相同的事情:

The Deep Links developer did the same:

@interface AppDelegate (CULPlugin)

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

@end