Package org.robovm.apple.uikit
Class UIApplication
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIApplication
- All Implemented Interfaces:
NSObjectProtocol,UIActivityItemsConfigurationProviding,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring,ObjCProtocol
public class UIApplication extends UIResponder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIApplication.Notificationsstatic classUIApplication.UIApplicationPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description UIApplication()protectedUIApplication(NSObject.Handle h, long handle)protectedUIApplication(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
UIApplication
public UIApplication() -
UIApplication
-
UIApplication
-
-
Method Details
-
getDelegate
-
setDelegate
-
isIgnoringInteractionEvents
Deprecated.Deprecated in iOS 13.0. Use UIView's userInteractionEnabled property instead -
isIdleTimerDisabled
public boolean isIdleTimerDisabled() -
setIdleTimerDisabled
public void setIdleTimerDisabled(boolean v) -
getKeyWindow
Deprecated.Deprecated in iOS 13.0. Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes -
getWindows
Deprecated.Deprecated in iOS 15.0. Use UIWindowScene.windows on a relevant window scene instead -
isNetworkActivityIndicatorVisible
Deprecated.Deprecated in iOS 13.0. Provide a custom network activity UI in your app if desired. -
setNetworkActivityIndicatorVisible
Deprecated.Deprecated in iOS 13.0. Provide a custom network activity UI in your app if desired. -
getStatusBarStyle
Deprecated.Deprecated in iOS 13.0. Use the statusBarManager property of the window scene instead. -
isStatusBarHidden
Deprecated.Deprecated in iOS 13.0. Use the statusBarManager property of the window scene instead. -
getStatusBarOrientation
Deprecated.Deprecated in iOS 13.0. Use the interfaceOrientation property of the window scene instead. -
getStatusBarOrientationAnimationDuration
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
getStatusBarFrame
Deprecated.Deprecated in iOS 13.0. Use the statusBarManager property of the window scene instead. -
getApplicationIconBadgeNumber
public long getApplicationIconBadgeNumber() -
setApplicationIconBadgeNumber
public void setApplicationIconBadgeNumber(long v) -
supportsShakeToEdit
public boolean supportsShakeToEdit() -
setSupportsShakeToEdit
public void setSupportsShakeToEdit(boolean v) -
getApplicationState
-
getBackgroundTimeRemaining
public double getBackgroundTimeRemaining() -
getBackgroundRefreshStatus
-
isProtectedDataAvailable
public boolean isProtectedDataAvailable() -
getUserInterfaceLayoutDirection
-
getPreferredContentSizeCategory
-
getConnectedScenes
- Since:
- Available in iOS 13.0 and later.
-
getOpenSessions
- Since:
- Available in iOS 13.0 and later.
-
supportsMultipleScenes
public boolean supportsMultipleScenes()- Since:
- Available in iOS 13.0 and later.
-
isRegisteredForRemoteNotifications
public boolean isRegisteredForRemoteNotifications() -
getScheduledLocalNotifications
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:] -
setScheduledLocalNotifications
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:] -
getCurrentUserNotificationSettings
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:] -
getShortcutItems
- Since:
- Available in iOS 9.0 and later.
-
setShortcutItems
- Since:
- Available in iOS 9.0 and later.
-
supportsAlternateIcons
public boolean supportsAlternateIcons()- Since:
- Available in iOS 10.3 and later.
-
getAlternateIconName
- Since:
- Available in iOS 10.3 and later.
-
setStatusBarOrientation
Deprecated.Deprecated in iOS 9.0. Explicit setting of the status bar orientation is more limited in iOS 6.0 and later -
setStatusBarStyle
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle] -
setStatusBarHidden
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden] -
main
public static <P extends UIApplication, D extends NSObject & UIApplicationDelegate> void main(String[] args, Class<P> principalClass, Class<D> delegateClass) -
ContentSizeCategoryDidChangeNotification
-
ContentSizeCategoryNewValueKey
-
getInvalidBackgroundTask
public static long getInvalidBackgroundTask() -
getMinimumKeepAliveTimeout
Deprecated.Deprecated in iOS 13.0. Please use PushKit for VoIP applications. -
getBackgroundFetchIntervalMinimum
public static double getBackgroundFetchIntervalMinimum() -
getBackgroundFetchIntervalNever
public static double getBackgroundFetchIntervalNever() -
DidEnterBackgroundNotification
-
WillEnterForegroundNotification
-
DidFinishLaunchingNotification
-
DidBecomeActiveNotification
-
WillResignActiveNotification
-
DidReceiveMemoryWarningNotification
-
WillTerminateNotification
-
SignificantTimeChangeNotification
-
WillChangeStatusBarOrientationNotification
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
DidChangeStatusBarOrientationNotification
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
StatusBarOrientationUserInfoKey
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
WillChangeStatusBarFrameNotification
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
DidChangeStatusBarFrameNotification
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
StatusBarFrameUserInfoKey
Deprecated.Deprecated in iOS 13.0. Use viewWillTransitionToSize:withTransitionCoordinator: instead. -
BackgroundRefreshStatusDidChangeNotification
-
ProtectedDataDidBecomeAvailableNotification
-
getOpenSettingsURLString
-
getOpenNotificationSettingsURLString
- Since:
- Available in iOS 15.4 and later.
-
UserDidTakeScreenshotNotification
-
main
protected static int main(int argc, BytePtr.BytePtrPtr argv, String principalClassName, String delegateClassName) -
beginIgnoringInteractionEvents
Deprecated.Deprecated in iOS 13.0. Use UIView's userInteractionEnabled property instead -
endIgnoringInteractionEvents
Deprecated.Deprecated in iOS 13.0. Use UIView's userInteractionEnabled property instead -
openURL
Deprecated.Deprecated in iOS 10.0. Use openURL:options:completionHandler: -
canOpenURL
-
openURL
- Since:
- Available in iOS 10.0 and later.
-
sendEvent
-
sendAction
-
getSupportedInterfaceOrientations
-
beginBackgroundTask
-
beginBackgroundTask
-
endBackgroundTask
public void endBackgroundTask(long identifier) -
setMinimumBackgroundFetchInterval
Deprecated.Deprecated in iOS 13.0. Use a BGAppRefreshTask in the BackgroundTasks framework instead -
requestSceneSessionActivation
public void requestSceneSessionActivation(UISceneSession sceneSession, NSUserActivity userActivity, UISceneActivationRequestOptions options, VoidBlock1<NSError> errorHandler)- Since:
- Available in iOS 13.0 and later.
-
requestSceneSessionDestruction
public void requestSceneSessionDestruction(UISceneSession sceneSession, UISceneDestructionRequestOptions options, VoidBlock1<NSError> errorHandler)- Since:
- Available in iOS 13.0 and later.
-
requestSceneSessionRefresh
- Since:
- Available in iOS 13.0 and later.
-
registerForRemoteNotifications
public void registerForRemoteNotifications() -
unregisterForRemoteNotifications
public void unregisterForRemoteNotifications() -
registerForRemoteNotificationTypes
Deprecated.Deprecated in iOS 8.0. Use -[UIApplication registerForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] -
getEnabledRemoteNotificationTypes
Deprecated.Deprecated in iOS 8.0. Use -[UIApplication isRegisteredForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote notification and user notification settings -
presentLocalNotificationNow
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:] -
scheduleLocalNotification
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:] -
cancelLocalNotification
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:] -
cancelAllLocalNotifications
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests] -
registerUserNotificationSettings
@Deprecated public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:] -
beginReceivingRemoteControlEvents
public void beginReceivingRemoteControlEvents() -
endReceivingRemoteControlEvents
public void endReceivingRemoteControlEvents() -
setNewsstandIconImage
Deprecated.Deprecated in iOS 9.0. Newsstand apps now behave like normal apps on SpringBoard -
setAlternateIcon
- Since:
- Available in iOS 10.3 and later.
-
extendStateRestoration
public void extendStateRestoration() -
completeStateRestoration
public void completeStateRestoration() -
ignoreSnapshotOnNextApplicationLaunch
public void ignoreSnapshotOnNextApplicationLaunch() -
registerObjectForStateRestoration
public static void registerObjectForStateRestoration(UIStateRestoring object, String restorationIdentifier) -
setStatusBarOrientation
@Deprecated public void setStatusBarOrientation(UIInterfaceOrientation interfaceOrientation, boolean animated)Deprecated.Deprecated in iOS 9.0. Explicit setting of the status bar orientation is more limited in iOS 6.0 and later -
setStatusBarStyle
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle] -
setStatusBarHidden
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden] -
setKeepAliveTimeout
Deprecated.Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method -
clearKeepAliveTimeout
Deprecated.Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method