UIKit.UIApplication Members

The members of UIKit.UIApplication are listed below.

See Also: Inherited members from UIKit.UIResponder

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

static
CheckForIllegalCrossThreadCallsbool. Determines whether the debug builds of MonoTouch will enforce that calls done to UIKit are only issued from the UI thread.

Public Properties

ApplicationIconBadgeNumbernint. Numeric value to display as the application badge number.
[read-only]
ApplicationStateUIApplicationState. Reflects the current application state.
ApplicationSupportsShakeToEditbool. Controls whether shaking the device will bring up the undo/redo buttons.
[read-only]
static
BackgroundFetchIntervalMinimumdouble. Represents the value associated with the constant UIApplicationBackgroundFetchIntervalMinimum
[read-only]
static
BackgroundFetchIntervalNeverdouble. Represents the value associated with the constant UIApplicationBackgroundFetchIntervalNever
[read-only]
BackgroundRefreshStatusUIBackgroundRefreshStatus. Whether background processing is allowed, denied, or restricted.
[read-only]
static
BackgroundRefreshStatusDidChangeNotificationFoundation.NSString. Notification constant for BackgroundRefreshStatusDidChange
[read-only]
static
BackgroundTaskInvalidnint. Represents the value associated with the constant UIBackgroundTaskInvalid
[read-only]
BackgroundTimeRemainingdouble. The number of seconds that the application has left to run in the background.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ContentSizeCategoryChangedNotificationFoundation.NSString. Notification constant for ContentSizeCategoryChanged
[read-only]
CurrentUserNotificationSettingsUIUserNotificationSettings. Returns current user notification settings for the app.
DelegateIUIApplicationDelegate. An instance of the UIKit.UIApplicationDelegate model class which acts as the class delegate.
[read-only]
static
DidBecomeActiveNotificationFoundation.NSString. Notification constant for DidBecomeActive
[read-only]
static
DidChangeStatusBarFrameNotificationFoundation.NSString. Notification constant for DidChangeStatusBarFrame
[read-only]
static
DidChangeStatusBarOrientationNotificationFoundation.NSString. Notification constant for DidChangeStatusBarOrientation
[read-only]
static
DidEnterBackgroundNotificationFoundation.NSString. Notification constant for DidEnterBackground
[read-only]
static
DidFinishLaunchingNotificationFoundation.NSString. Notification constant for DidFinishLaunching
[read-only]
static
DidReceiveMemoryWarningNotificationFoundation.NSString. Notification constant for DidReceiveMemoryWarning
[read-only]
EnabledRemoteNotificationTypesUIRemoteNotificationType. Returns a bit-masked UIKit.UIRemoteNotificationType indicating which types of notifications the app accepts.
IdleTimerDisabledbool. If true, indicates that the screen should not dim even when no input is occurring.
[read-only]
IsIgnoringInteractionEventsbool. Whether the receiver is ignoring touch events.
[read-only]
IsRegisteredForRemoteNotificationsbool. Indicates whether app is registered for remote notifications.
[read-only]
KeyWindowUIWindow. Returns the application's key window - the window that is currently displayed and receives user input
[read-only]
static
LaunchOptionsAnnotationKeyFoundation.NSString. Launch Options Key: Use this key to find out if custom data was passed to the program by the opening application. The value of this key will be a property list.
[read-only]
static
LaunchOptionsBluetoothCentralsKeyFoundation.NSString. Represents the value associated with the constant UIApplicationLaunchOptionsBluetoothCentralsKey
[read-only]
static
LaunchOptionsBluetoothPeripheralsKeyFoundation.NSString. Represents the value associated with the constant UIApplicationLaunchOptionsBluetoothPeripheralsKey
[read-only]
static
LaunchOptionsLocalNotificationKeyFoundation.NSString. Notification constant for LaunchOptionsLocalNot
[read-only]
static
LaunchOptionsLocationKeyFoundation.NSString. Launch Options Key: Application was started up in response to a location event.
[read-only]
static
LaunchOptionsNewsstandDownloadsKeyFoundation.NSString. Launch Options Key: This key indicates that Newsstand has completed downloading the requested data.
[read-only]
static
LaunchOptionsRemoteNotificationKeyFoundation.NSString. Notification constant for LaunchOptionsRemoteNot
[read-only]
static
LaunchOptionsSourceApplicationKeyFoundation.NSString. Launch Options Key: the value associated with the key is the bundle-id of the application that launched this application.
[read-only]
static
LaunchOptionsUrlKeyFoundation.NSString. Launch Options Key: the application was launched in response to open a URL. the value associated with the key contains the URL to open.
[read-only]
static
LaunchOptionsUserActivityDictionaryKeyFoundation.NSString. Represents the value associated with the constant UIApplicationLaunchOptionsUserActivityDictionaryKey
[read-only]
static
LaunchOptionsUserActivityTypeKeyFoundation.NSString. Represents the value associated with the constant UIApplicationLaunchOptionsUserActivityTypeKey
[read-only]
static
MinimumKeepAliveTimeoutdouble. Represents the value associated with the constant UIMinimumKeepAliveTimeout
NetworkActivityIndicatorVisiblebool. Controls the status of the network activity indicator on the device.
[read-only]
static
OpenSettingsUrlStringFoundation.NSString. Represents the value associated with the constant UIApplicationOpenSettingsURLString
[read-only]
PreferredContentSizeCategoryFoundation.NSString. The font size preferred by the application user.
[read-only]
ProtectedDataAvailablebool. Whether content protection is available.
[read-only]
static
ProtectedDataDidBecomeAvailableFoundation.NSString. Indicates that the state of protected data has changed.
[read-only]
static
ProtectedDataWillBecomeUnavailableFoundation.NSString. Indicates that the state of protected data has changed.
ScheduledLocalNotificationsUILocalNotification[]. An array of UIKit.UILocalNotifications that are currently scheduled.
[read-only]
static
SharedApplicationUIApplication. Points to the main application class.
[read-only]
static
SignificantTimeChangeNotificationFoundation.NSString. Notification constant for SignificantTimeChange
[read-only]
static
StateRestorationBundleVersionKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStateRestorationBundleVersionKey
[read-only]
static
StateRestorationSystemVersionKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStateRestorationSystemVersionKey
[read-only]
static
StateRestorationTimestampKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStateRestorationTimestampKey
[read-only]
static
StateRestorationUserInterfaceIdiomKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStateRestorationUserInterfaceIdiomKey
[read-only]
StatusBarFrameCoreGraphics.CGRect. The Frame of the status bar.
[read-only]
static
StatusBarFrameUserInfoKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStatusBarFrameUserInfoKey
StatusBarHiddenbool. Whether the status bar is visible.
StatusBarOrientationUIInterfaceOrientation. The orientation of the status bar.
[read-only]
StatusBarOrientationAnimationDurationdouble. The length of the animation used when the status bar rotates.
[read-only]
static
StatusBarOrientationUserInfoKeyFoundation.NSString. Represents the value associated with the constant UIApplicationStatusBarOrientationUserInfoKey
StatusBarStyleUIStatusBarStyle. The current UIKit.UIStatusBarStyle.
[read-only]
static
UITrackingRunLoopModeFoundation.NSString. Represents the value associated with the constant UITrackingRunLoopMode
[read-only]
static
UserDidTakeScreenshotNotificationFoundation.NSString. Notification constant for UserDidTakeScreenshot
[read-only]
UserInterfaceLayoutDirectionUIUserInterfaceLayoutDirection. The layout direction (right-to-left or left-to-right) of the UI.
WeakDelegateFoundation.NSObject. An object that can respond to the delegate protocol for this type
[read-only]
static
WillChangeStatusBarFrameNotificationFoundation.NSString. Notification constant for WillChangeStatusBarFrame
[read-only]
static
WillChangeStatusBarOrientationNotificationFoundation.NSString. Notification constant for WillChangeStatusBarOrientation
[read-only]
static
WillEnterForegroundNotificationFoundation.NSString. Notification constant for WillEnterForeground
[read-only]
static
WillResignActiveNotificationFoundation.NSString. Notification constant for WillResignActive
[read-only]
static
WillTerminateNotificationFoundation.NSString. Notification constant for WillTerminate
[read-only]
WindowsUIWindow[]. All of the application windows.

Public Methods

BeginBackgroundTask(Action) : nint
Indicates the inception of a new long-running background task.
BeginBackgroundTask(string, Action) : nint
Requests that the app be allowed to process in the background.
BeginIgnoringInteractionEvents()
Stops the application from receiving touch events.
BeginReceivingRemoteControlEvents()
Indicates that the application should start listening for remote-control events.
CancelAllLocalNotifications()
Cancels the delivery of scheduled local notifications.
CancelLocalNotification(UILocalNotification)
Cancels a local notification.
CanOpenUrl(Foundation.NSUrl) : bool
Determines whether the given URL can be opened by OpenUrl.
ClearKeepAliveTimeout()
Stops invoking the KeepAlive method defined previously with SetKeepAliveTimeout.
CompleteStateRestoration()
Indicates to the system that state restoration is complete.
EndBackgroundTask(nint)
Indicates to the system that background processing has ended for the taskId.
EndIgnoringInteractionEvents()
Resumes receiving touch events for the application.
EndReceivingRemoteControlEvents()
Indicates that the application should nto receive further remote-control events.
static
EnsureUIThread()
Assertion to ensure that this call is being done from the UIKit thread.
ExtendStateRestoration()
Indicates that the application is restoring state asynchronously.
IgnoreSnapshotOnNextApplicationLaunch()
Instructs the system not to use a UI snapshot during relaunch.
static
Main(string[])
Launches the main application loop with the given command line parameters.
static
Main(string[], string, string)
Launches the main application loop with the given command line parameters.
static
Main(string[], Type, Type)
Launches the main application loop with the given command line parameters.
OpenUrl(Foundation.NSUrl) : bool
Opens the specified URL, launching the app that's registered to handle the scheme.
PresentLocalNotificationNow(UILocalNotification)
Immediately presents a local notification.
RegisterForRemoteNotifications()
Registers for receipt of push notifications using the Apple Push Service.
RegisterForRemoteNotificationTypes(UIRemoteNotificationType)
Begins the registration of the application to receive the specified types of notification from Apple Push Service.
static
RegisterObjectForStateRestoration(IUIStateRestoring, string)
Registers the uistateRestoringObject as eligible for state restoration.
RegisterUserNotificationSettings(UIUserNotificationSettings)
Registers the preferred options for user notification.
ScheduleLocalNotification(UILocalNotification)
Schedules the notification for delivery.
SendAction(ObjCRuntime.Selector, Foundation.NSObject, Foundation.NSObject, UIEvent) : bool
Send an action message to the specified target.
SendEvent(UIEvent)
Sends an event to the application.
SetKeepAliveTimeout(double, Action) : bool
In older iOS versions, this configures a periodic handler for VoIP apps.
SetMinimumBackgroundFetchInterval(double)
Activates backgound fetching.
SetNewsstandIconImage(UIImage)
Sets the icon to be used in Newsstand.
SetStatusBarHidden(bool, bool)
Hides or shows the animation bar, and whether it should be animated.
SetStatusBarHidden(bool, UIStatusBarAnimation)
Hides or shows the status bar.
SetStatusBarOrientation(UIInterfaceOrientation, bool)
Sets the status bar to orientation.
SetStatusBarStyle(UIStatusBarStyle, bool)
Sets the style of the status bar, optionally animating the change.
SupportedInterfaceOrientationsForWindow(UIWindow) : UIInterfaceOrientationMask
The set of interface orientations that are used for the view controllers in the specified window.
UnregisterForRemoteNotifications()
The application will no longer receive notifications from Apple Push Service.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UIApplication object.