UIApplication class

UIApplication

Inheritance
Available extensions

Constructors

UIApplication.new()
Returns a new instance of UIApplication constructed with the default new method.
factory
UIApplication.castFrom(ObjCObjectBase other)
Constructs a UIApplication that points to the same underlying object as other.
UIApplication.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a UIApplication that wraps the given raw object pointer.

Properties

alternateIconName → NSString?

Available on UIApplication, provided by the UIAlternateApplicationIcons extension

alternateIconName
no setter
applicationIconBadgeNumber int

Available on UIApplication, provided by the UIApplication$Methods extension

applicationIconBadgeNumber
getter/setter pair
applicationState UIApplicationState

Available on UIApplication, provided by the UIApplication$Methods extension

applicationState
no setter
applicationSupportsShakeToEdit bool

Available on UIApplication, provided by the UIApplication$Methods extension

applicationSupportsShakeToEdit
getter/setter pair
backgroundRefreshStatus UIBackgroundRefreshStatus

Available on UIApplication, provided by the UIApplication$Methods extension

! When background refresh is available for an application, it may launched or resumed in the background to handle significant location changes, remote notifications, background fetches, etc. Observe UIApplicationBackgroundRefreshStatusDidChangeNotification to be notified of changes.
no setter
backgroundTimeRemaining double

Available on UIApplication, provided by the UIApplication$Methods extension

backgroundTimeRemaining
no setter
canBecomeFirstResponder bool

Available on UIResponder, provided by the UIResponder$Methods extension

canBecomeFirstResponder
no setter
canResignFirstResponder bool

Available on UIResponder, provided by the UIResponder$Methods extension

canResignFirstResponder
no setter
connectedScenes → NSSet

Available on UIApplication, provided by the UIApplication$Methods extension

connectedScenes
no setter
currentUserNotificationSettings UIUserNotificationSettings?

Available on UIApplication, provided by the UIUserNotificationSettings$1 extension

currentUserNotificationSettings
no setter
delegate UIApplicationDelegate?

Available on UIApplication, provided by the UIApplication$Methods extension

delegate
getter/setter pair
editingInteractionConfiguration UIEditingInteractionConfiguration

Available on UIResponder, provided by the UIResponder$Methods extension

editingInteractionConfiguration
no setter
hashCode int
The hash code for this object.
no setterinherited
idleTimerDisabled bool

Available on UIApplication, provided by the UIApplication$Methods extension

isIdleTimerDisabled
getter/setter pair
ignoringInteractionEvents bool

Available on UIApplication, provided by the UIApplication$Methods extension

isIgnoringInteractionEvents
no setter
inputAccessoryView UIView?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputAccessoryView
no setter
inputAccessoryViewController UIInputViewController?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputAccessoryViewController
no setter
inputAssistantItem UITextInputAssistantItem

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain.
no setter
inputView UIView?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputView
no setter
inputViewController UIInputViewController?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

inputViewController
no setter
isFirstResponder bool

Available on UIResponder, provided by the UIResponder$Methods extension

isFirstResponder
no setter
keyCommands → NSArray?

Available on UIResponder, provided by the UIResponderKeyCommands extension

keyCommands
no setter
keyWindow UIWindow?

Available on UIApplication, provided by the UIApplication$Methods extension

keyWindow
no setter
networkActivityIndicatorVisible bool

Available on UIApplication, provided by the UIApplication$Methods extension

isNetworkActivityIndicatorVisible
getter/setter pair
nextResponder UIResponder?

Available on UIResponder, provided by the UIResponder$Methods extension

nextResponder
no setter
openSessions → NSSet

Available on UIApplication, provided by the UIApplication$Methods extension

openSessions
no setter
preferredContentSizeCategory → NSString

Available on UIApplication, provided by the UIApplication$Methods extension

preferredContentSizeCategory
no setter
protectedDataAvailable bool

Available on UIApplication, provided by the UIApplication$Methods extension

isProtectedDataAvailable
no setter
proximitySensingEnabled bool

Available on UIApplication, provided by the UIApplicationDeprecated extension

isProximitySensingEnabled
getter/setter pair
ref → ObjCObjectRef
finalinherited
registeredForRemoteNotifications bool

Available on UIApplication, provided by the UIRemoteNotifications extension

isRegisteredForRemoteNotifications
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduledLocalNotifications ↔ NSArray?

Available on UIApplication, provided by the UILocalNotifications extension

scheduledLocalNotifications
getter/setter pair
shortcutItems ↔ NSArray?

Available on UIApplication, provided by the UIShortcutItems extension

shortcutItems
getter/setter pair
statusBarFrame → CGRect

Available on UIApplication, provided by the UIApplication$Methods extension

statusBarFrame
no setter
statusBarHidden bool

Available on UIApplication, provided by the UIApplication$Methods extension

isStatusBarHidden
no setter
statusBarHidden bool

Available on UIApplication, provided by the UIApplicationDeprecated extension

isStatusBarHidden
getter/setter pair
statusBarOrientation UIInterfaceOrientation

Available on UIApplication, provided by the UIApplicationDeprecated extension

statusBarOrientation
getter/setter pair
statusBarOrientation UIInterfaceOrientation

Available on UIApplication, provided by the UIApplication$Methods extension

statusBarOrientation
no setter
statusBarOrientationAnimationDuration double

Available on UIApplication, provided by the UIApplication$Methods extension

statusBarOrientationAnimationDuration
no setter
statusBarStyle UIStatusBarStyle

Available on UIApplication, provided by the UIApplicationDeprecated extension

statusBarStyle
getter/setter pair
statusBarStyle UIStatusBarStyle

Available on UIApplication, provided by the UIApplication$Methods extension

statusBarStyle
no setter
supportsAlternateIcons bool

Available on UIApplication, provided by the UIAlternateApplicationIcons extension

supportsAlternateIcons
no setter
supportsMultipleScenes bool

Available on UIApplication, provided by the UIApplication$Methods extension

supportsMultipleScenes
no setter
textInputContextIdentifier → NSString?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

textInputContextIdentifier
no setter
textInputMode UITextInputMode?

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

textInputMode
no setter
undoManager NSUndoManager?

Available on UIResponder, provided by the UIResponder$Methods extension

undoManager
no setter
userActivity NSUserActivity?

Available on UIResponder, provided by the ActivityContinuation extension

userActivity
getter/setter pair
userInterfaceLayoutDirection UIUserInterfaceLayoutDirection

Available on UIApplication, provided by the UIApplication$Methods extension

userInterfaceLayoutDirection
no setter
windows → NSArray

Available on UIApplication, provided by the UIApplication$Methods extension

windows
no setter

Methods

becomeFirstResponder() bool

Available on UIResponder, provided by the UIResponder$Methods extension

becomeFirstResponder
beginBackgroundTaskWithExpirationHandler(ObjCBlock<Void Function()>? handler) int

Available on UIApplication, provided by the UIApplication$Methods extension

beginBackgroundTaskWithExpirationHandler:
beginBackgroundTaskWithName(NSString? taskName, {ObjCBlock<Void Function()>? expirationHandler}) int

Available on UIApplication, provided by the UIApplication$Methods extension

beginBackgroundTaskWithName:expirationHandler:
beginIgnoringInteractionEvents() → void

Available on UIApplication, provided by the UIApplication$Methods extension

beginIgnoringInteractionEvents
beginReceivingRemoteControlEvents() → void

Available on UIApplication, provided by the UIRemoteControlEvents extension

beginReceivingRemoteControlEvents
buildMenuWithBuilder(UIMenuBuilder builder) → void

Available on UIResponder, provided by the UIResponder$Methods extension

buildMenuWithBuilder:
cancelAllLocalNotifications() → void

Available on UIApplication, provided by the UILocalNotifications extension

cancelAllLocalNotifications
cancelLocalNotification(UILocalNotification notification) → void

Available on UIApplication, provided by the UILocalNotifications extension

cancelLocalNotification:
canOpenURL(NSURL url) bool

Available on UIApplication, provided by the UIApplication$Methods extension

canOpenURL:
canPerformAction(Pointer<ObjCSelector> action, {ObjCObjectBase? withSender}) bool

Available on UIResponder, provided by the UIResponder$Methods extension

canPerformAction:withSender:
captureTextFromCamera(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UICaptureTextFromCameraSupporting extension

captureTextFromCamera:
clearKeepAliveTimeout() → void

Available on UIApplication, provided by the UIApplicationDeprecated extension

clearKeepAliveTimeout
completeStateRestoration() → void

Available on UIApplication, provided by the UIStateRestoration$2 extension

completeStateRestoration
copy(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

copy:
cut(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

cut:
decreaseSize(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

decreaseSize:
delete(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

delete:
enabledRemoteNotificationTypes() UIRemoteNotificationType

Available on UIApplication, provided by the UIRemoteNotifications extension

enabledRemoteNotificationTypes
endBackgroundTask(int identifier) → void

Available on UIApplication, provided by the UIApplication$Methods extension

endBackgroundTask:
endIgnoringInteractionEvents() → void

Available on UIApplication, provided by the UIApplication$Methods extension

endIgnoringInteractionEvents
endReceivingRemoteControlEvents() → void

Available on UIApplication, provided by the UIRemoteControlEvents extension

endReceivingRemoteControlEvents
extendStateRestoration() → void

Available on UIApplication, provided by the UIStateRestoration$2 extension

extendStateRestoration
ignoreSnapshotOnNextApplicationLaunch() → void

Available on UIApplication, provided by the UIStateRestoration$2 extension

ignoreSnapshotOnNextApplicationLaunch
increaseSize(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

increaseSize:
init() UIApplication

Available on UIApplication, provided by the UIApplication$Methods extension

init
init() UIResponder

Available on UIResponder, provided by the UIResponder$Methods extension

init
makeTextWritingDirectionLeftToRight(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

makeTextWritingDirectionLeftToRight:
makeTextWritingDirectionRightToLeft(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

makeTextWritingDirectionRightToLeft:
motionBegan(UIEventSubtype motion, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

motionBegan:withEvent:
motionCancelled(UIEventSubtype motion, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

motionCancelled:withEvent:
motionEnded(UIEventSubtype motion, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

motionEnded:withEvent:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openURL(NSURL url) bool

Available on UIApplication, provided by the UIApplication$Methods extension

openURL:
openURL$1(NSURL url, {required NSDictionary options, ObjCBlock<Void Function(Bool)>? completionHandler}) → void

Available on UIApplication, provided by the UIApplication$Methods extension

openURL:options:completionHandler:
paste(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

paste:
pasteAndGo(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pasteAndGo:
pasteAndMatchStyle(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pasteAndMatchStyle:
pasteAndSearch(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pasteAndSearch:
presentLocalNotificationNow(UILocalNotification notification) → void

Available on UIApplication, provided by the UILocalNotifications extension

presentLocalNotificationNow:
pressesBegan(NSSet presses, {UIPressesEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pressesBegan:withEvent:
pressesCancelled(NSSet presses, {UIPressesEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pressesCancelled:withEvent:
pressesChanged(NSSet presses, {UIPressesEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pressesChanged:withEvent:
pressesEnded(NSSet presses, {UIPressesEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

pressesEnded:withEvent:
print(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

print:
registerForRemoteNotifications() → void

Available on UIApplication, provided by the UIRemoteNotifications extension

registerForRemoteNotifications
registerForRemoteNotificationTypes(UIRemoteNotificationType types) → void

Available on UIApplication, provided by the UIRemoteNotifications extension

registerForRemoteNotificationTypes:
registerUserNotificationSettings(UIUserNotificationSettings notificationSettings) → void

Available on UIApplication, provided by the UIUserNotificationSettings$1 extension

registerUserNotificationSettings:
reloadInputViews() → void

Available on UIResponder, provided by the UIResponderInputViewAdditions extension

reloadInputViews
remoteControlReceivedWithEvent(UIEvent? event) → void

Available on UIResponder, provided by the UIResponder$Methods extension

remoteControlReceivedWithEvent:
requestSceneSessionActivation(UISceneSession? sceneSession, {NSUserActivity? userActivity, UISceneActivationRequestOptions? options, ObjCBlock<Void Function(NSError)>? errorHandler}) → void

Available on UIApplication, provided by the UIApplication$Methods extension

requestSceneSessionActivation:userActivity:options:errorHandler:
requestSceneSessionDestruction(UISceneSession sceneSession, {UISceneDestructionRequestOptions? options, ObjCBlock<Void Function(NSError)>? errorHandler}) → void

Available on UIApplication, provided by the UIApplication$Methods extension

requestSceneSessionDestruction:options:errorHandler:
requestSceneSessionRefresh(UISceneSession sceneSession) → void

Available on UIApplication, provided by the UIApplication$Methods extension

requestSceneSessionRefresh:
resignFirstResponder() bool

Available on UIResponder, provided by the UIResponder$Methods extension

resignFirstResponder
restoreUserActivityState(NSUserActivity userActivity$1) → void

Available on UIResponder, provided by the ActivityContinuation extension

restoreUserActivityState:
scheduleLocalNotification(UILocalNotification notification) → void

Available on UIApplication, provided by the UILocalNotifications extension

scheduleLocalNotification:
select(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

select:
selectAll(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

selectAll:
sendAction(Pointer<ObjCSelector> action, {ObjCObjectBase? to, ObjCObjectBase? from, UIEvent? forEvent}) bool

Available on UIApplication, provided by the UIApplication$Methods extension

sendAction:to:from:forEvent:
sendEvent(UIEvent event) → void

Available on UIApplication, provided by the UIApplication$Methods extension

sendEvent:
setAlternateIconName(NSString? alternateIconName, {ObjCBlock<Void Function(NSError?)>? completionHandler}) → void

Available on UIApplication, provided by the UIAlternateApplicationIcons extension

setAlternateIconName:completionHandler:
setKeepAliveTimeout(double timeout, {ObjCBlock<Void Function()>? handler}) bool

Available on UIApplication, provided by the UIApplicationDeprecated extension

setKeepAliveTimeout:handler:
setMinimumBackgroundFetchInterval(double minimumBackgroundFetchInterval) → void

Available on UIApplication, provided by the UIApplication$Methods extension

! The system guarantees that it will not wake up your application for a background fetch more frequently than the interval provided. Set to UIApplicationBackgroundFetchIntervalMinimum to be woken as frequently as the system desires, or to UIApplicationBackgroundFetchIntervalNever (the default) to never be woken for a background fetch.
setNewsstandIconImage(UIImage? image) → void

Available on UIApplication, provided by the UINewsstand extension

setNewsstandIconImage:
setStatusBarHidden(bool hidden, {required bool animated}) → void

Available on UIApplication, provided by the UIApplicationDeprecated extension

setStatusBarHidden:animated:
setStatusBarHidden$1(bool hidden, {required UIStatusBarAnimation withAnimation}) → void

Available on UIApplication, provided by the UIApplicationDeprecated extension

setStatusBarHidden:withAnimation:
setStatusBarOrientation(UIInterfaceOrientation interfaceOrientation, {required bool animated}) → void

Available on UIApplication, provided by the UIApplicationDeprecated extension

setStatusBarOrientation:animated:
setStatusBarStyle(UIStatusBarStyle statusBarStyle$1, {required bool animated}) → void

Available on UIApplication, provided by the UIApplicationDeprecated extension

setStatusBarStyle:animated:
supportedInterfaceOrientationsForWindow(UIWindow? window) UIInterfaceOrientationMask

Available on UIApplication, provided by the UIApplication$Methods extension

supportedInterfaceOrientationsForWindow:
targetForAction(Pointer<ObjCSelector> action, {ObjCObjectBase? withSender}) → ObjCObjectBase?

Available on UIResponder, provided by the UIResponder$Methods extension

targetForAction:withSender:
toggleBoldface(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

toggleBoldface:
toggleItalics(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

toggleItalics:
toggleUnderline(ObjCObjectBase? sender) → void

Available on UIResponder, provided by the UIResponder$Methods extension

toggleUnderline:
toString() String
A string representation of this object.
inherited
touchesBegan(NSSet touches, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

touchesBegan:withEvent:
touchesCancelled(NSSet touches, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

touchesCancelled:withEvent:
touchesEnded(NSSet touches, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

touchesEnded:withEvent:
touchesEstimatedPropertiesUpdated(NSSet touches) → void

Available on UIResponder, provided by the UIResponder$Methods extension

touchesEstimatedPropertiesUpdated:
touchesMoved(NSSet touches, {UIEvent? withEvent}) → void

Available on UIResponder, provided by the UIResponder$Methods extension

touchesMoved:withEvent:
unregisterForRemoteNotifications() → void

Available on UIApplication, provided by the UIRemoteNotifications extension

unregisterForRemoteNotifications
updateTextAttributesWithConversionHandler(ObjCBlock<NSDictionary Function(NSDictionary)> conversionHandler) → void

Available on UIResponder, provided by the UIResponder$Methods extension

updateTextAttributesWithConversionHandler:
updateUserActivityState(NSUserActivity activity) → void

Available on UIResponder, provided by the ActivityContinuation extension

updateUserActivityState:
validateCommand(UICommand command) → void

Available on UIResponder, provided by the UIResponder$Methods extension

validateCommand:

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() UIApplication
alloc
override
allocWithZone(Pointer<NSZone> zone) UIApplication
allocWithZone:
override
getSharedApplication() UIApplication
sharedApplication
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of UIApplication.
override
new$() UIApplication
new
override