UIApplication UIApplication Class

Definition

Encapsulates the main processing loop for a MonoTouch application.

[Foundation.Register("UIApplication", true)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIApplication : UIKit.UIResponder
type UIApplication = class
    inherit UIResponder
Inheritance
Attributes

Remarks

The UIApplication encapsulates the central administrative properties of an application running on iOS. Application developers must not instantiate new UIApplications using constructors, but instead must use the static SharedApplication singleton property. Application developers may subclass UIApplication and use the principalClassName argument to the M:UIKit.UIApplication.Main(string[],string,string) method to specify their subclass. In that situation, developers must create a public constructor for their subclass that the runtime will call appropriately. Subsequently, the SharedApplication singleton will refer to the instance of their subclass.

Unlike with most classes in the N:UIKit namespace, events relating to the UIApplication cannot be handled using C#-style events but rather only by the Objective-C style UIApplicationDelegate delegate style.

The UIApplication object is responsible for maintaining the highest-level context of the application, such as the ApplicationState, the set of open windows (Windows), and functions relating to notifications (see also T:UIKit.UIAppearance+Notifications.xml). Additionally, the UIApplication() method may be used to launch another application.

The UIApplication class contains methods relating to background processing, such as EnsureUIThread(), BeginBackgroundTask(String, Action), and EndBackgroundTask(nint).

Background Fetch

Starting with iOS 7, applications can request that they be woken up to download data from the server in the background. When this feature is enabled, the operating system will resume the application or launch the application at some point to allow the application to download any new contents it needs from the server.

To use this, applications need to have the "fetch" background operation requested on their requested Entitlements as well as calling the SetMinimumBackgroundFetchInterval(Double) method with the desired wake up interval at launch.

When the operating system determines that the application should be resumed to download data, the PerformFetch(UIApplication, Action<UIBackgroundFetchResult>) method will be invoked. This method should perform any downloads and then notify the operating system of the result of the operation.

Applications do not really have control of when the application will be launched. The actual launch time is determined by a set of heuristics based that the operating system tracks based on how the user uses the application, as well as tracking the status of previous download operations that the application has done.

Remote Notifications

Starting with iOS 7, applications can request that they be woken up when a remote notification is received. When this feature is enabled, the operating system will resume the application and invoke the DidReceiveRemoteNotification(IUIApplicationDelegate, UIApplication, NSDictionary, Action<UIBackgroundFetchResult>) overload that takes a completion handler parameter and let it run.

To use this, applications need to have the "remote-notification" background operation requested on their requested Entitlements as.

Constructors

UIApplication() UIApplication()

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

UIApplication(IntPtr) UIApplication(IntPtr)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

UIApplication(NSObjectFlag) UIApplication(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Fields

CheckForEventAndDelegateMismatches CheckForEventAndDelegateMismatches

If true, the system will try to diagnose potential mistakes where events and delegate-object overrides are in conflict.

CheckForIllegalCrossThreadCalls CheckForIllegalCrossThreadCalls

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

Properties

AccessibilityAssistiveTechnologyFocusedIdentifiers AccessibilityAssistiveTechnologyFocusedIdentifiers Inherited from UIResponder
AccessibilityCustomActions AccessibilityCustomActions

Allows methods to be added to AccessibilityCustomActions as accessibility-supporting supplementary actions.

(Inherited from UIResponder)
AccessibilityDragSourceDescriptors AccessibilityDragSourceDescriptors Inherited from UIResponder
AccessibilityDropPointDescriptors AccessibilityDropPointDescriptors Inherited from UIResponder
AlternateIconName AlternateIconName

Gets the name of the alternate icon for this application, if present.

ApplicationIconBadgeNumber ApplicationIconBadgeNumber

Numeric value to display as the application badge number.

ApplicationState ApplicationState

Reflects the current application state.

ApplicationSupportsShakeToEdit ApplicationSupportsShakeToEdit

Controls whether shaking the device will bring up the undo/redo buttons.

BackgroundFetchIntervalMinimum BackgroundFetchIntervalMinimum

Represents the value associated with the constant UIApplicationBackgroundFetchIntervalMinimum

BackgroundFetchIntervalNever BackgroundFetchIntervalNever

Represents the value associated with the constant UIApplicationBackgroundFetchIntervalNever

BackgroundRefreshStatus BackgroundRefreshStatus

Whether background processing is allowed, denied, or restricted.

BackgroundRefreshStatusDidChangeNotification BackgroundRefreshStatusDidChangeNotification

Notification constant for BackgroundRefreshStatusDidChange

BackgroundTaskInvalid BackgroundTaskInvalid

Represents the value associated with the constant UIBackgroundTaskInvalid

BackgroundTimeRemaining BackgroundTimeRemaining

The number of seconds that the application has left to run in the background.

CanBecomeFirstResponder CanBecomeFirstResponder

Determines whether this UIREsponder is willing to become the first responder.

(Inherited from UIResponder)
CanResignFirstResponder CanResignFirstResponder

Determines whether this UIResponder is willing to give up its first responder status.

(Inherited from UIResponder)
Class Class Inherited from NSObject
ClassHandle ClassHandle

The handle for this class.

ContentSizeCategoryChangedNotification ContentSizeCategoryChangedNotification

Notification constant for ContentSizeCategoryChanged

CurrentUserNotificationSettings CurrentUserNotificationSettings

Returns current user notification settings for the app.

DebugDescription DebugDescription

A developer-meaningful description of this object.

(Inherited from NSObject)
Delegate Delegate

An instance of the UIKit.IUIApplicationDelegate model class which acts as the class delegate.

Description Description

Description of the object, the Objective-C version of ToString.

(Inherited from NSObject)
DidBecomeActiveNotification DidBecomeActiveNotification

Notification constant for DidBecomeActive

DidChangeStatusBarFrameNotification DidChangeStatusBarFrameNotification

Notification constant for DidChangeStatusBarFrame

DidChangeStatusBarOrientationNotification DidChangeStatusBarOrientationNotification

Notification constant for DidChangeStatusBarOrientation

DidEnterBackgroundNotification DidEnterBackgroundNotification

Notification constant for DidEnterBackground

DidFinishLaunchingNotification DidFinishLaunchingNotification

Notification constant for DidFinishLaunching

DidReceiveMemoryWarningNotification DidReceiveMemoryWarningNotification

Notification constant for DidReceiveMemoryWarning

EnabledRemoteNotificationTypes EnabledRemoteNotificationTypes

Returns a bit-masked UIRemoteNotificationType indicating which types of notifications the app accepts.

Handle Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
IdleTimerDisabled IdleTimerDisabled

If true, indicates that the screen should not dim even when no input is occurring.

InputAccessoryView InputAccessoryView

Custom view that can be attached when the object becomes the first responder.

(Inherited from UIResponder)
InputAccessoryViewController InputAccessoryViewController

Gets the custom accessory UIInputViewController to display when this UIResponder becomes the first responder.

(Inherited from UIResponder)
InputAssistantItem InputAssistantItem

Gets the assistant that will be used to configure the shortcut bar.

(Inherited from UIResponder)
InputView InputView

Custom view to display when the object becomes the first responder. Read-only.

(Inherited from UIResponder)
InputViewController InputViewController

Gets the custom UIInputViewController to display when this UIResponder becomes the first responder.

(Inherited from UIResponder)
IsDirectBinding IsDirectBinding Inherited from NSObject
IsFirstResponder IsFirstResponder

Returns whether this UIResponder is the First Responder.

(Inherited from UIResponder)
IsIgnoringInteractionEvents IsIgnoringInteractionEvents

Whether the receiver is ignoring touch events.

IsProxy IsProxy Inherited from NSObject
IsRegisteredForRemoteNotifications IsRegisteredForRemoteNotifications

Indicates whether app is registered for remote notifications.

KeyCommands KeyCommands

The key commands that should trigger action on this UIResponder. Read-only.

(Inherited from UIResponder)
KeyWindow KeyWindow

Returns the application's key window - the window that is currently displayed and receives user input

LaunchOptionsAnnotationKey LaunchOptionsAnnotationKey

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.

LaunchOptionsBluetoothCentralsKey LaunchOptionsBluetoothCentralsKey

Represents the value associated with the constant UIApplicationLaunchOptionsBluetoothCentralsKey

LaunchOptionsBluetoothPeripheralsKey LaunchOptionsBluetoothPeripheralsKey

Represents the value associated with the constant UIApplicationLaunchOptionsBluetoothPeripheralsKey

LaunchOptionsCloudKitShareMetadataKey LaunchOptionsCloudKitShareMetadataKey
LaunchOptionsLocalNotificationKey LaunchOptionsLocalNotificationKey

Notification constant for LaunchOptionsLocalNot

LaunchOptionsLocationKey LaunchOptionsLocationKey

Launch Options Key: Application was started up in response to a location event.

LaunchOptionsNewsstandDownloadsKey LaunchOptionsNewsstandDownloadsKey

Launch Options Key: This key indicates that Newsstand has completed downloading the requested data.

LaunchOptionsRemoteNotificationKey LaunchOptionsRemoteNotificationKey

Notification constant for LaunchOptionsRemoteNot

LaunchOptionsShortcutItemKey LaunchOptionsShortcutItemKey

The presence of this key indicates that the application was launched via a shortcut item.

LaunchOptionsSourceApplicationKey LaunchOptionsSourceApplicationKey

Launch Options Key: the value associated with the key is the bundle-id of the application that launched this application.

LaunchOptionsUrlKey LaunchOptionsUrlKey

Launch Options Key: the application was launched in response to open a URL. the value associated with the key contains the URL to open.

LaunchOptionsUserActivityDictionaryKey LaunchOptionsUserActivityDictionaryKey

Represents the value associated with the constant UIApplicationLaunchOptionsUserActivityDictionaryKey

LaunchOptionsUserActivityTypeKey LaunchOptionsUserActivityTypeKey

Represents the value associated with the constant UIApplicationLaunchOptionsUserActivityTypeKey

MinimumKeepAliveTimeout MinimumKeepAliveTimeout

Represents the value associated with the constant UIMinimumKeepAliveTimeout

NetworkActivityIndicatorVisible NetworkActivityIndicatorVisible

Controls the status of the network activity indicator on the device.

NextResponder NextResponder

The next responder on the response chain

(Inherited from UIResponder)
OpenSettingsUrlString OpenSettingsUrlString

Represents the value associated with the constant UIApplicationOpenSettingsURLString

PasteConfiguration PasteConfiguration

The UIPasteConfiguration supported by this object.

(Inherited from UIResponder)
PreferredContentSizeCategory PreferredContentSizeCategory

The font size preferred by the application user.

ProtectedDataAvailable ProtectedDataAvailable

Whether content protection is available.

ProtectedDataDidBecomeAvailable ProtectedDataDidBecomeAvailable

Indicates that the state of protected data has changed.

ProtectedDataWillBecomeUnavailable ProtectedDataWillBecomeUnavailable

Indicates that the state of protected data has changed.

RetainCount RetainCount

Returns the current Objective-C retain count for the object.

(Inherited from NSObject)
ScheduledLocalNotifications ScheduledLocalNotifications

An array of UILocalNotifications that are currently scheduled.

Self Self Inherited from NSObject
SharedApplication SharedApplication

Points to the main application class.

ShortcutItems ShortcutItems

Gets or sets the list of Quick Action shortcuts that the developer defined in code, as distinct from those defined in the Info.plist file.

SignificantTimeChangeNotification SignificantTimeChangeNotification

Notification constant for SignificantTimeChange

StateRestorationBundleVersionKey StateRestorationBundleVersionKey

Represents the value associated with the constant UIApplicationStateRestorationBundleVersionKey

StateRestorationSystemVersionKey StateRestorationSystemVersionKey

Represents the value associated with the constant UIApplicationStateRestorationSystemVersionKey

StateRestorationTimestampKey StateRestorationTimestampKey

Represents the value associated with the constant UIApplicationStateRestorationTimestampKey

StateRestorationUserInterfaceIdiomKey StateRestorationUserInterfaceIdiomKey

Represents the value associated with the constant UIApplicationStateRestorationUserInterfaceIdiomKey

StatusBarFrame StatusBarFrame

The Frame of the status bar.

StatusBarFrameUserInfoKey StatusBarFrameUserInfoKey

Represents the value associated with the constant UIApplicationStatusBarFrameUserInfoKey

StatusBarHidden StatusBarHidden

Whether the status bar is visible.

StatusBarOrientation StatusBarOrientation

The orientation of the status bar.

StatusBarOrientationAnimationDuration StatusBarOrientationAnimationDuration

The length of the animation used when the status bar rotates.

StatusBarOrientationUserInfoKey StatusBarOrientationUserInfoKey

Represents the value associated with the constant UIApplicationStatusBarOrientationUserInfoKey

StatusBarStyle StatusBarStyle

The current UIStatusBarStyle.

Superclass Superclass Inherited from NSObject
SuperHandle SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
SupportsAlternateIcons SupportsAlternateIcons
TextInputContextIdentifier TextInputContextIdentifier

An identifier indicating that this UIResponder should preserve its text input mode information. Read-only.

(Inherited from UIResponder)
TextInputMode TextInputMode

The text input mode for this UIResponder. Read-only.

(Inherited from UIResponder)
UITrackingRunLoopMode UITrackingRunLoopMode

Represents the value associated with the constant UITrackingRunLoopMode

UndoManager UndoManager

The nearest shared NSUndoManager in the responder chain. Read-only.

(Inherited from UIResponder)
UserActivity UserActivity

Action that encapsulates a user activity that is supported by this responder.

(Inherited from UIResponder)
UserDidTakeScreenshotNotification UserDidTakeScreenshotNotification

Notification constant for UserDidTakeScreenshot

UserInterfaceLayoutDirection UserInterfaceLayoutDirection

The layout direction (right-to-left or left-to-right) of the UI.

WeakDelegate WeakDelegate

An object that can respond to the delegate protocol for this type

WillChangeStatusBarFrameNotification WillChangeStatusBarFrameNotification

Notification constant for WillChangeStatusBarFrame

WillChangeStatusBarOrientationNotification WillChangeStatusBarOrientationNotification

Notification constant for WillChangeStatusBarOrientation

WillEnterForegroundNotification WillEnterForegroundNotification

Notification constant for WillEnterForeground

WillResignActiveNotification WillResignActiveNotification

Notification constant for WillResignActive

WillTerminateNotification WillTerminateNotification

Notification constant for WillTerminate

Windows Windows

All of the application windows.

Zone Zone Inherited from NSObject

Methods

AccessibilityDecrement() AccessibilityDecrement()

Tells the accessibility element to decrement the value of its content.

(Inherited from UIResponder)
AccessibilityElementDidBecomeFocused() AccessibilityElementDidBecomeFocused()

Indicates that an assistive technology has set its focus to this UIResponder.

(Inherited from UIResponder)
AccessibilityElementDidLoseFocus() AccessibilityElementDidLoseFocus()

Indicates that an assistive technology has changed its focus from this UIResponder.

(Inherited from UIResponder)
AccessibilityElementIsFocused() AccessibilityElementIsFocused()

Indicates whether an assistive technology is focused on this UIResponder.

(Inherited from UIResponder)
AccessibilityIncrement() AccessibilityIncrement()

Tells the accessibility element to increment the value of its content.

(Inherited from UIResponder)
AccessibilityPerformEscape() AccessibilityPerformEscape()

Tells the accessibility system to dismiss a modal popover or hierarchically-displayed element.

(Inherited from UIResponder)
AccessibilityPerformMagicTap() AccessibilityPerformMagicTap()

Toggles the application-defined "most important state" of the app.

(Inherited from UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection) AccessibilityScroll(UIAccessibilityScrollDirection)

When overridden, allows the accessibility system to perform scrolling.

(Inherited from UIResponder)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using NSString keyPath). Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr)

Registers an object for being observed externally (using string keyPath). Observed changes are dispatched to the observer’s object ObserveValue(NSString, NSObject, NSDictionary, IntPtr) method.

(Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AwakeFromNib() AwakeFromNib()

Called after the object has been loaded from the nib file. Overriders must call base.AwakeFromNib().

(Inherited from NSObject)
BecomeFirstResponder() BecomeFirstResponder()

Request the object to become the first responder.

(Inherited from UIResponder)
BeginBackgroundTask(Action) BeginBackgroundTask(Action)

Indicates the inception of a new long-running background task.

BeginBackgroundTask(String, Action) BeginBackgroundTask(String, Action)

Requests that the app be allowed to process in the background.

BeginIgnoringInteractionEvents() BeginIgnoringInteractionEvents()

Stops the application from receiving touch events.

BeginInvokeOnMainThread(Action) BeginInvokeOnMainThread(Action) Inherited from NSObject
BeginInvokeOnMainThread(Selector, NSObject) BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
BeginReceivingRemoteControlEvents() BeginReceivingRemoteControlEvents()

Indicates that the application should start listening for remote-control events.

CancelAllLocalNotifications() CancelAllLocalNotifications()

Developers should not use this deprecated method. Developers should use 'UNUserNotificationCenter.RemoveAllPendingNotificationRequests' instead.

CancelLocalNotification(UILocalNotification) CancelLocalNotification(UILocalNotification)

Cancels a local notification.

CanOpenUrl(NSUrl) CanOpenUrl(NSUrl)

Determines whether the given URL can be opened by OpenUrl.

CanPaste(NSItemProvider[]) CanPaste(NSItemProvider[])

Gets whether this can accept a paste operation by the .

(Inherited from UIResponder)
CanPerform(Selector, NSObject) CanPerform(Selector, NSObject)

Determines if this UIResponder can perform the specified action. Typically used to probe for editing commands.

(Inherited from UIResponder)
ClearKeepAliveTimeout() ClearKeepAliveTimeout()

Stops invoking the KeepAlive method defined previously with SetKeepAliveTimeout.

CompleteStateRestoration() CompleteStateRestoration()

Indicates to the system that state restoration is complete.

ConformsToProtocol(IntPtr) ConformsToProtocol(IntPtr)

Invoked to determine if this object implements the specified protocol.

(Inherited from NSObject)
Copy() Copy()

Performs a copy of the underlying Objective-C object.

(Inherited from NSObject)
Copy(NSObject) Copy(NSObject)

Indicates a "Copy" editing operation.

(Inherited from UIResponder)
Cut(NSObject) Cut(NSObject)

Indicates a "Cut" editing operation.

(Inherited from UIResponder)
DangerousAutorelease() DangerousAutorelease() Inherited from NSObject
DangerousRelease() DangerousRelease() Inherited from NSObject
DangerousRetain() DangerousRetain() Inherited from NSObject
Delete(NSObject) Delete(NSObject)

Indicates a "Delete" editing operation.

(Inherited from UIResponder)
DidChange(NSKeyValueChange, NSIndexSet, NSString) DidChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates a change occurred to the indexes for a to-many relationship.

(Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) DidChange(NSString, NSKeyValueSetMutationKind, NSSet) Inherited from NSObject
DidChangeValue(String) DidChangeValue(String)

Indicates that a change occurred on the specified key.

(Inherited from NSObject)
Dispose() Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the UIApplication object.

DoesNotRecognizeSelector(Selector) DoesNotRecognizeSelector(Selector)

Indicates that this object does not recognize the specified selector.

(Inherited from NSObject)
EndBackgroundTask(nint) EndBackgroundTask(nint)

Indicates to the system that background processing has ended for the taskId.

EndIgnoringInteractionEvents() EndIgnoringInteractionEvents()

Resumes receiving touch events for the application.

EndReceivingRemoteControlEvents() EndReceivingRemoteControlEvents()

Indicates that the application should nto receive further remote-control events.

EnsureUIThread() EnsureUIThread()

Assertion to ensure that this call is being done from the UIKit thread.

Equals(NSObject) Equals(NSObject) Inherited from NSObject
Equals(Object) Equals(Object) Inherited from NSObject
ExtendStateRestoration() ExtendStateRestoration()

Indicates that the application is restoring state asynchronously.

GetDictionaryOfValuesFromKeys(NSString[]) GetDictionaryOfValuesFromKeys(NSString[])

Retrieves the values of the specified keys.

(Inherited from NSObject)
GetHashCode() GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetMethodForSelector(Selector) GetMethodForSelector(Selector) Inherited from NSObject
GetNativeField(String) GetNativeField(String) Inherited from NSObject
GetNativeHash() GetNativeHash() Inherited from NSObject
GetTargetForAction(Selector, NSObject) GetTargetForAction(Selector, NSObject)

Returns the object that responds to an action.

(Inherited from UIResponder)
IgnoreSnapshotOnNextApplicationLaunch() IgnoreSnapshotOnNextApplicationLaunch()

Instructs the system not to use a UI snapshot during relaunch.

Init() Init() Inherited from NSObject
InitializeHandle(IntPtr) InitializeHandle(IntPtr) Inherited from NSObject
InitializeHandle(IntPtr, String) InitializeHandle(IntPtr, String) Inherited from NSObject
Invoke(Action, Double) Invoke(Action, Double) Inherited from NSObject
Invoke(Action, TimeSpan) Invoke(Action, TimeSpan) Inherited from NSObject
InvokeOnMainThread(Action) InvokeOnMainThread(Action) Inherited from NSObject
InvokeOnMainThread(Selector, NSObject) InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsEqual(NSObject) IsEqual(NSObject) Inherited from NSObject
IsKindOfClass(Class) IsKindOfClass(Class) Inherited from NSObject
IsMemberOfClass(Class) IsMemberOfClass(Class) Inherited from NSObject
Main(String[]) Main(String[])

Launches the main application loop with the given command line parameters.

Main(String[], String, String) Main(String[], String, String)

Launches the main application loop with the given command line parameters.

Main(String[], Type, Type) Main(String[], Type, Type)

Launches the main application loop with the given command line parameters.

MakeTextWritingDirectionLeftToRight(NSObject) MakeTextWritingDirectionLeftToRight(NSObject)

Sets the direction in which text is written to be left-to-right.

(Inherited from UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject) MakeTextWritingDirectionRightToLeft(NSObject)

Sets the direction in which text is written to be right-to-left.

(Inherited from UIResponder)
MarkDirty() MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MotionBegan(UIEventSubtype, UIEvent) MotionBegan(UIEventSubtype, UIEvent)

Method invoked when a motion (a shake) has started.

(Inherited from UIResponder)
MotionCancelled(UIEventSubtype, UIEvent) MotionCancelled(UIEventSubtype, UIEvent)

Method invoked if the operating system cancels a motion (shake) event.

(Inherited from UIResponder)
MotionEnded(UIEventSubtype, UIEvent) MotionEnded(UIEventSubtype, UIEvent)

Method invoked when a motion (shake) has finished.

(Inherited from UIResponder)
MutableCopy() MutableCopy()

Creates a mutable copy of the specified NSObject.

(Inherited from NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) ObserveValue(NSString, NSObject, NSDictionary, IntPtr)

Indicates that the value at the specified keyPath relative to this object has changed.

(Inherited from NSObject)
OpenUrl(NSUrl) OpenUrl(NSUrl)

Opens the specified URL, launching the app that's registered to handle the scheme.

OpenUrl(NSUrl, NSDictionary, Action<Boolean>) OpenUrl(NSUrl, NSDictionary, Action<Boolean>)

Opens the specified URL, launching the app that's registered to handle the scheme.

OpenUrl(NSUrl, UIApplicationOpenUrlOptions, Action<Boolean>) OpenUrl(NSUrl, UIApplicationOpenUrlOptions, Action<Boolean>)

Opens the specified URL, launching the app that is registered to handle the scheme.

OpenUrlAsync(NSUrl, UIApplicationOpenUrlOptions) OpenUrlAsync(NSUrl, UIApplicationOpenUrlOptions)

Asynchronously opens the specified URL, launching the app that is registered to handle the scheme, and returns a task the represents success or failure.

Paste(NSItemProvider[]) Paste(NSItemProvider[])

Called to perform a paste operation from .

(Inherited from UIResponder)
Paste(NSObject) Paste(NSObject)

Indicates a "Paste" editing operation.

(Inherited from UIResponder)
PerformSelector(Selector) PerformSelector(Selector) Inherited from NSObject
PerformSelector(Selector, NSObject) PerformSelector(Selector, NSObject) Inherited from NSObject
PerformSelector(Selector, NSObject, Double) PerformSelector(Selector, NSObject, Double)

Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.

(Inherited from NSObject)
PerformSelector(Selector, NSObject, Double, NSString[]) PerformSelector(Selector, NSObject, Double, NSString[]) Inherited from NSObject
PerformSelector(Selector, NSObject, NSObject) PerformSelector(Selector, NSObject, NSObject) Inherited from NSObject
PerformSelector(Selector, NSThread, NSObject, Boolean) PerformSelector(Selector, NSThread, NSObject, Boolean) Inherited from NSObject
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) Inherited from NSObject
PrepareForInterfaceBuilder() PrepareForInterfaceBuilder() Inherited from NSObject
PresentLocalNotificationNow(UILocalNotification) PresentLocalNotificationNow(UILocalNotification)

Immediately presents a local notification.

PressesBegan(NSSet<UIPress>, UIPressesEvent) PressesBegan(NSSet<UIPress>, UIPressesEvent)

Indicates that a physical button has been pressed on a remote or game controller.

(Inherited from UIResponder)
PressesCancelled(NSSet<UIPress>, UIPressesEvent) PressesCancelled(NSSet<UIPress>, UIPressesEvent)

Indicates a physical button-press event has been cancelled due to a system event.

(Inherited from UIResponder)
PressesChanged(NSSet<UIPress>, UIPressesEvent) PressesChanged(NSSet<UIPress>, UIPressesEvent)

Indicates that the Force value of the evt has changed.

(Inherited from UIResponder)
PressesEnded(NSSet<UIPress>, UIPressesEvent) PressesEnded(NSSet<UIPress>, UIPressesEvent)

Indicates the ending of a press of a physical button on a remote or game controller.

(Inherited from UIResponder)
RegisterForRemoteNotifications() RegisterForRemoteNotifications()

Registers for receipt of push notifications using the Apple Push Service.

RegisterForRemoteNotificationTypes(UIRemoteNotificationType) RegisterForRemoteNotificationTypes(UIRemoteNotificationType)

Begins the registration of the application to receive the specified types of notification from Apple Push Service.

RegisterObjectForStateRestoration(IUIStateRestoring, String) RegisterObjectForStateRestoration(IUIStateRestoring, String)

Registers the uistateRestoringObject as eligible for state restoration.

RegisterUserNotificationSettings(UIUserNotificationSettings) RegisterUserNotificationSettings(UIUserNotificationSettings)

Registers the preferred options for user notification.

ReloadInputViews() ReloadInputViews()

Updates custom input and accessory views when this object is the first responder.

(Inherited from UIResponder)
RemoteControlReceived(UIEvent) RemoteControlReceived(UIEvent)

Indicates that a remote-control event was received.

(Inherited from UIResponder)
RemoveObserver(NSObject, NSString) RemoveObserver(NSObject, NSString)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, NSString, IntPtr) RemoveObserver(NSObject, NSString, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
RemoveObserver(NSObject, String) RemoveObserver(NSObject, String)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath.

(Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr) RemoveObserver(NSObject, String, IntPtr)

Stops the specified observer from receiving further notifications of changed values for the specified keyPath and context.

(Inherited from NSObject)
ResignFirstResponder() ResignFirstResponder()

Called when this UIResponder has been asked to resign its first responder status.

(Inherited from UIResponder)
RespondsToSelector(Selector) RespondsToSelector(Selector)

Whether this object recognizes the specified selector.

(Inherited from NSObject)
RestoreUserActivityState(NSUserActivity) RestoreUserActivityState(NSUserActivity)

Restores the state that is necessary for continuance of the specified user activity.

(Inherited from UIResponder)
ScheduleLocalNotification(UILocalNotification) ScheduleLocalNotification(UILocalNotification)

Schedules the notification for delivery.

Select(NSObject) Select(NSObject)

Indicates a "Select" editing operation.|b

(Inherited from UIResponder)
SelectAll(NSObject) SelectAll(NSObject)

Indicates a "Select All" editing operation.

(Inherited from UIResponder)
SendAction(Selector, NSObject, NSObject, UIEvent) SendAction(Selector, NSObject, NSObject, UIEvent)

Send an action message to the specified target.

SendEvent(UIEvent) SendEvent(UIEvent)

Sends an event to the application.

SetAlternateIconName(String, Action<NSError>) SetAlternateIconName(String, Action<NSError>)

Sets the name of the alternate icon.

SetAlternateIconNameAsync(String) SetAlternateIconNameAsync(String)

Sets the name of the alternate icon.

SetKeepAliveTimeout(Double, Action) SetKeepAliveTimeout(Double, Action)

In older iOS versions, this configures a periodic handler for VoIP apps.

SetMinimumBackgroundFetchInterval(Double) SetMinimumBackgroundFetchInterval(Double)

Activates backgound fetching.

SetNativeField(String, NSObject) SetNativeField(String, NSObject) Inherited from NSObject
SetNewsstandIconImage(UIImage) SetNewsstandIconImage(UIImage)

Sets the icon to be used in Newsstand.

SetNilValueForKey(NSString) SetNilValueForKey(NSString)

Sets the value of the specified key to null.

(Inherited from NSObject)
SetStatusBarHidden(Boolean, Boolean) SetStatusBarHidden(Boolean, Boolean)

Hides or shows the animation bar, and whether it should be animated.

SetStatusBarHidden(Boolean, UIStatusBarAnimation) SetStatusBarHidden(Boolean, UIStatusBarAnimation)

Hides or shows the status bar.

SetStatusBarOrientation(UIInterfaceOrientation, Boolean) SetStatusBarOrientation(UIInterfaceOrientation, Boolean)

Sets the status bar to orientation.

SetStatusBarStyle(UIStatusBarStyle, Boolean) SetStatusBarStyle(UIStatusBarStyle, Boolean)

Sets the style of the status bar, optionally animating the change.

SetValueForKey(NSObject, NSString) SetValueForKey(NSObject, NSString)

Sets the value of the property specified by the key to the specified value.

(Inherited from NSObject)
SetValueForKeyPath(IntPtr, NSString) SetValueForKeyPath(IntPtr, NSString)

A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

(Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) SetValueForKeyPath(NSObject, NSString)

Sets the value of a property that can be reached using a keypath.

(Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) SetValueForUndefinedKey(NSObject, NSString)

Indicates an attempt to write a value to an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) SetValuesForKeysWithDictionary(NSDictionary)

Sets the values of this NSObject to those in the specified dictionary.

(Inherited from NSObject)
SupportedInterfaceOrientationsForWindow(UIWindow) SupportedInterfaceOrientationsForWindow(UIWindow)

The set of interface orientations that are used for the view controllers in the specified window.

ToggleBoldface(NSObject) ToggleBoldface(NSObject)

Toggles the use of a bold font.

(Inherited from UIResponder)
ToggleItalics(NSObject) ToggleItalics(NSObject)

Toggles the use of an italic font.

(Inherited from UIResponder)
ToggleUnderline(NSObject) ToggleUnderline(NSObject)

Toggles the use of underlining.

(Inherited from UIResponder)
ToString() ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TouchesBegan(NSSet, UIEvent) TouchesBegan(NSSet, UIEvent)

Sent when one or more fingers touches the screen.

(Inherited from UIResponder)
TouchesCancelled(NSSet, UIEvent) TouchesCancelled(NSSet, UIEvent)

Sent when the touch processing has been cancelled.

(Inherited from UIResponder)
TouchesEnded(NSSet, UIEvent) TouchesEnded(NSSet, UIEvent)

Sent when one or more fingers are lifted from the screen.

(Inherited from UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet) TouchesEstimatedPropertiesUpdated(NSSet)

Called when the estimated properties of touches have been updated.

(Inherited from UIResponder)
TouchesMoved(NSSet, UIEvent) TouchesMoved(NSSet, UIEvent)

Sent when one or more fingers move on the screen.

(Inherited from UIResponder)
UnregisterForRemoteNotifications() UnregisterForRemoteNotifications()

The application will no longer receive notifications from Apple Push Service.

UpdateUserActivityState(NSUserActivity) UpdateUserActivityState(NSUserActivity)

Updates a given user activity state.

(Inherited from UIResponder)
ValueForKey(NSString) ValueForKey(NSString)

Returns the value of the property associated with the specified key.

(Inherited from NSObject)
ValueForKeyPath(NSString) ValueForKeyPath(NSString)

Returns the value of a property that can be reached using a keypath.

(Inherited from NSObject)
ValueForUndefinedKey(NSString) ValueForUndefinedKey(NSString)

Indicates an attempt to read a value of an undefined key. If not overridden, raises an NSUndefinedKeyException.

(Inherited from NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) WillChange(NSKeyValueChange, NSIndexSet, NSString)

Indicates that the values of the specified indices in the specified key are about to change.

(Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) WillChange(NSString, NSKeyValueSetMutationKind, NSSet) Inherited from NSObject
WillChangeValue(String) WillChangeValue(String)

Indicates that the value of the specified key is about to change.

(Inherited from NSObject)

Extension Methods

GetDebugDescription(INSObjectProtocol) GetDebugDescription(INSObjectProtocol)
GetAccessibilityCustomRotors(NSObject) GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[]) SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[]) CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

Paste(IUIPasteConfigurationSupporting, NSItemProvider[]) Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

Performs the paste.

DecreaseSize(UIResponder, NSObject) DecreaseSize(UIResponder, NSObject)

A hardware keyboard request (Command-minus) to decrease the size of the UIResponder.

IncreaseSize(UIResponder, NSObject) IncreaseSize(UIResponder, NSObject)

A hardware keyboard request (Command-plus) to increase the size of the UIResponder.

Applies to

See also