UIApplication class
UIApplication
- Inheritance
-
- Object
- UIResponder
- UIApplication
- Available extensions
- ActivityContinuation
- UIAlternateApplicationIcons
- UIApplication$Methods
- UIApplicationDeprecated
- UICaptureTextFromCameraSupporting
- UILocalNotifications
- UINewsstand
- UIRemoteControlEvents
- UIRemoteNotifications
- UIResponder$Methods
- UIResponderInputViewAdditions
- UIResponderKeyCommands
- UIShortcutItems
- UIStateRestoration$2
- UIUserNotificationSettings$1
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
alternateIconNameno setter - applicationIconBadgeNumber ↔ int
-
Available on UIApplication, provided by the UIApplication$Methods extension
applicationIconBadgeNumbergetter/setter pair - applicationState → UIApplicationState
-
Available on UIApplication, provided by the UIApplication$Methods extension
applicationStateno setter - applicationSupportsShakeToEdit ↔ bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
applicationSupportsShakeToEditgetter/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
backgroundTimeRemainingno setter - canBecomeFirstResponder → bool
-
Available on UIResponder, provided by the UIResponder$Methods extension
canBecomeFirstResponderno setter - canResignFirstResponder → bool
-
Available on UIResponder, provided by the UIResponder$Methods extension
canResignFirstResponderno setter - connectedScenes → NSSet
-
Available on UIApplication, provided by the UIApplication$Methods extension
connectedScenesno setter - currentUserNotificationSettings → UIUserNotificationSettings?
-
Available on UIApplication, provided by the UIUserNotificationSettings$1 extension
currentUserNotificationSettingsno setter - delegate ↔ UIApplicationDelegate?
-
Available on UIApplication, provided by the UIApplication$Methods extension
delegategetter/setter pair - editingInteractionConfiguration → UIEditingInteractionConfiguration
-
Available on UIResponder, provided by the UIResponder$Methods extension
editingInteractionConfigurationno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- idleTimerDisabled ↔ bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
isIdleTimerDisabledgetter/setter pair - ignoringInteractionEvents → bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
isIgnoringInteractionEventsno setter - inputAccessoryView → UIView?
-
Available on UIResponder, provided by the UIResponderInputViewAdditions extension
inputAccessoryViewno setter - inputAccessoryViewController → UIInputViewController?
-
Available on UIResponder, provided by the UIResponderInputViewAdditions extension
inputAccessoryViewControllerno 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
inputViewno setter - inputViewController → UIInputViewController?
-
Available on UIResponder, provided by the UIResponderInputViewAdditions extension
inputViewControllerno setter - isFirstResponder → bool
-
Available on UIResponder, provided by the UIResponder$Methods extension
isFirstResponderno setter - keyCommands → NSArray?
-
Available on UIResponder, provided by the UIResponderKeyCommands extension
keyCommandsno setter - keyWindow → UIWindow?
-
Available on UIApplication, provided by the UIApplication$Methods extension
keyWindowno setter - networkActivityIndicatorVisible ↔ bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
isNetworkActivityIndicatorVisiblegetter/setter pair - nextResponder → UIResponder?
-
Available on UIResponder, provided by the UIResponder$Methods extension
nextResponderno setter - openSessions → NSSet
-
Available on UIApplication, provided by the UIApplication$Methods extension
openSessionsno setter - preferredContentSizeCategory → NSString
-
Available on UIApplication, provided by the UIApplication$Methods extension
preferredContentSizeCategoryno setter - protectedDataAvailable → bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
isProtectedDataAvailableno setter - proximitySensingEnabled ↔ bool
-
Available on UIApplication, provided by the UIApplicationDeprecated extension
isProximitySensingEnabledgetter/setter pair - ref → ObjCObjectRef
-
finalinherited
- registeredForRemoteNotifications → bool
-
Available on UIApplication, provided by the UIRemoteNotifications extension
isRegisteredForRemoteNotificationsno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledLocalNotifications ↔ NSArray?
-
Available on UIApplication, provided by the UILocalNotifications extension
scheduledLocalNotificationsgetter/setter pair - shortcutItems ↔ NSArray?
-
Available on UIApplication, provided by the UIShortcutItems extension
shortcutItemsgetter/setter pair - statusBarFrame → CGRect
-
Available on UIApplication, provided by the UIApplication$Methods extension
statusBarFrameno setter - statusBarHidden → bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
isStatusBarHiddenno setter - statusBarHidden ↔ bool
-
Available on UIApplication, provided by the UIApplicationDeprecated extension
isStatusBarHiddengetter/setter pair - statusBarOrientation ↔ UIInterfaceOrientation
-
Available on UIApplication, provided by the UIApplicationDeprecated extension
statusBarOrientationgetter/setter pair - statusBarOrientation → UIInterfaceOrientation
-
Available on UIApplication, provided by the UIApplication$Methods extension
statusBarOrientationno setter - statusBarOrientationAnimationDuration → double
-
Available on UIApplication, provided by the UIApplication$Methods extension
statusBarOrientationAnimationDurationno setter - statusBarStyle ↔ UIStatusBarStyle
-
Available on UIApplication, provided by the UIApplicationDeprecated extension
statusBarStylegetter/setter pair - statusBarStyle → UIStatusBarStyle
-
Available on UIApplication, provided by the UIApplication$Methods extension
statusBarStyleno setter - supportsAlternateIcons → bool
-
Available on UIApplication, provided by the UIAlternateApplicationIcons extension
supportsAlternateIconsno setter - supportsMultipleScenes → bool
-
Available on UIApplication, provided by the UIApplication$Methods extension
supportsMultipleScenesno setter - textInputContextIdentifier → NSString?
-
Available on UIResponder, provided by the UIResponderInputViewAdditions extension
textInputContextIdentifierno setter - textInputMode → UITextInputMode?
-
Available on UIResponder, provided by the UIResponderInputViewAdditions extension
textInputModeno setter - undoManager → NSUndoManager?
-
Available on UIResponder, provided by the UIResponder$Methods extension
undoManagerno setter - userActivity ↔ NSUserActivity?
-
Available on UIResponder, provided by the ActivityContinuation extension
userActivitygetter/setter pair - userInterfaceLayoutDirection → UIUserInterfaceLayoutDirection
-
Available on UIApplication, provided by the UIApplication$Methods extension
userInterfaceLayoutDirectionno setter - windows → NSArray
-
Available on UIApplication, provided by the UIApplication$Methods extension
windowsno 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(
required bool animated}) → void -
Available on UIApplication, provided by the UIApplicationDeprecated extension
setStatusBarHidden:animated: -
setStatusBarHidden$1(
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
- sharedApplication
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
obj
is an instance of UIApplication.override -
new$(
) → UIApplication -
new
override