Example added

text fixed
This commit is contained in:
Vladimir Enchev
2016-05-19 14:38:14 +03:00
parent e616354833
commit f99ab2b23f

View File

@ -19,4 +19,25 @@ if (app.ios) {
if (app.ios) {
app.ios.removeNotificationObserver(observer, UIDeviceBatteryLevelDidChangeNotification);
}
// << application-ios-observer
// << application-ios-observer
// >> application-ios-delegate
//// Add custom application delegate
if (app.ios) {
class MyDelegate extends UIResponder implements UIApplicationDelegate {
public static ObjCProtocols = [UIApplicationDelegate];
applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary): boolean {
return true;
}
applicationDidBecomeActive(application: UIApplication): void {
// Get reference to the application window.
//console.log("keyWindow: " + application.keyWindow);
}
}
app.ios.delegate = MyDelegate;
}
// << application-ios-delegate