mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
missing ObjCProtocols added
This commit is contained in:
@ -1,17 +1,26 @@
|
|||||||
import application = require("application");
|
import application = require("application");
|
||||||
|
|
||||||
// Specify custom UIApplicationDelegate.
|
// Specify custom UIApplicationDelegate.
|
||||||
/*
|
|
||||||
class MyDelegate extends UIResponder implements UIApplicationDelegate {
|
class MyDelegate extends UIResponder implements UIApplicationDelegate {
|
||||||
public window: UIWindow;
|
public static ObjCProtocols = [UIApplicationDelegate];
|
||||||
|
|
||||||
constructor() {
|
applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary): boolean {
|
||||||
super();
|
console.log("applicationWillFinishLaunchingWithOptions: " + launchOptions)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
applicationDidBecomeActive(application: UIApplication): void {
|
||||||
|
console.log("applicationDidBecomeActive: " + application)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
application.ios.delegate = MyDelegate;
|
application.ios.delegate = MyDelegate;
|
||||||
*/
|
|
||||||
|
// Observe application notifications.
|
||||||
|
application.ios.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, (notification: NSNotification) => {
|
||||||
|
console.log("UIApplicationDidFinishLaunchingNotification: " + notification)
|
||||||
|
});
|
||||||
|
|
||||||
application.mainModule = "app/mainPage";
|
application.mainModule = "app/mainPage";
|
||||||
|
|
||||||
// Common events for both Android and iOS.
|
// Common events for both Android and iOS.
|
||||||
|
Reference in New Issue
Block a user