Preview 2.0 is now in Public Beta!
Read the Announcement
Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
iOSApplication

Summary

Accessors

delegate

get delegate(): any
The [UIApplicationDelegate](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html) class.
Returns any

nativeApp

get nativeApp(): UIApplication
The [UIApplication](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html).
Returns UIApplication

rootController

get rootController(): UIViewController
The root view controller for the application.
Returns UIViewController

window

get window(): UIWindow
The key window.
Returns UIWindow

Methods

addNotificationObserver

addNotificationObserver(
  notificationName: string,
  onReceiveCallback: (notification: NSNotification) => void
): NotificationObserver
Adds an observer to the default notification center for the specified notification. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'
Parameter Default Description
notificationName
string

A string containing the name of the notification.

onReceiveCallback
(notification: NSNotification) => void

A callback function that will be called each time the observer receives a notification.

Returns NotificationObserver

removeNotificationObserver

removeNotificationObserver(observer: any, notificationName: string): any
Removes the observer for the specified notification from the default notification center. For more information, please visit 'https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSNotificationCenter_Class/#//apple_ref/occ/instm/NSNotificationCenter/addObserver:selector:name:object:'
Parameter Default Description
observer
any

The observer that was returned from the addNotificationObserver method.

notificationName
string

A string containing the name of the notification.

Returns any
Previous
XmlParser