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
,UIAccessibility
,org.robovm.objc.ObjCProtocol
public class UIApplication extends UIResponder
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIApplication.Notifications
static class
UIApplication.UIApplicationPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIApplication()
protected
UIApplication(NSObject.Handle h, long handle)
protected
UIApplication(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
UIApplication
public UIApplication()
-
UIApplication
protected UIApplication(NSObject.Handle h, long handle)
-
UIApplication
protected UIApplication(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getSharedApplication
public static UIApplication getSharedApplication()
-
getDelegate
public UIApplicationDelegate getDelegate()
-
setDelegate
public void setDelegate(UIApplicationDelegate v)
-
isIgnoringInteractionEvents
public boolean isIgnoringInteractionEvents()
-
isIdleTimerDisabled
public boolean isIdleTimerDisabled()
-
setIdleTimerDisabled
public void setIdleTimerDisabled(boolean v)
-
getKeyWindow
public UIWindow getKeyWindow()
-
isNetworkActivityIndicatorVisible
public boolean isNetworkActivityIndicatorVisible()
-
setNetworkActivityIndicatorVisible
public void setNetworkActivityIndicatorVisible(boolean v)
-
getStatusBarStyle
public UIStatusBarStyle getStatusBarStyle()
-
isStatusBarHidden
public boolean isStatusBarHidden()
-
getStatusBarOrientation
public UIInterfaceOrientation getStatusBarOrientation()
-
getStatusBarOrientationAnimationDuration
public double getStatusBarOrientationAnimationDuration()
-
getStatusBarFrame
public CGRect getStatusBarFrame()
-
getApplicationIconBadgeNumber
public long getApplicationIconBadgeNumber()
-
setApplicationIconBadgeNumber
public void setApplicationIconBadgeNumber(long v)
-
supportsShakeToEdit
public boolean supportsShakeToEdit()
- Since:
- Available in iOS 3.0 and later.
-
setSupportsShakeToEdit
public void setSupportsShakeToEdit(boolean v)
- Since:
- Available in iOS 3.0 and later.
-
getApplicationState
public UIApplicationState getApplicationState()
- Since:
- Available in iOS 4.0 and later.
-
getBackgroundTimeRemaining
public double getBackgroundTimeRemaining()
- Since:
- Available in iOS 4.0 and later.
-
getBackgroundRefreshStatus
public UIBackgroundRefreshStatus getBackgroundRefreshStatus()
- Since:
- Available in iOS 7.0 and later.
-
isProtectedDataAvailable
public boolean isProtectedDataAvailable()
- Since:
- Available in iOS 4.0 and later.
-
getUserInterfaceLayoutDirection
public UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection()
- Since:
- Available in iOS 5.0 and later.
-
getPreferredContentSizeCategory
public java.lang.String getPreferredContentSizeCategory()
- Since:
- Available in iOS 7.0 and later.
-
isRegisteredForRemoteNotifications
public boolean isRegisteredForRemoteNotifications()
- Since:
- Available in iOS 8.0 and later.
-
getScheduledLocalNotifications
@Deprecated public NSArray<UILocalNotification> getScheduledLocalNotifications()
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]- Since:
- Available in iOS 4.0 and later.
-
setScheduledLocalNotifications
@Deprecated public void setScheduledLocalNotifications(NSArray<UILocalNotification> v)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getPendingNotificationRequestsWithCompletionHandler:]- Since:
- Available in iOS 4.0 and later.
-
getCurrentUserNotificationSettings
@Deprecated public UIUserNotificationSettings getCurrentUserNotificationSettings()
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:] and -[UNUserNotificationCenter getNotificationCategoriesWithCompletionHandler:]- Since:
- Available in iOS 8.0 and later.
-
getShortcutItems
public NSArray<UIApplicationShortcutItem> getShortcutItems()
- Since:
- Available in iOS 9.0 and later.
-
setShortcutItems
public void setShortcutItems(NSArray<UIApplicationShortcutItem> v)
- Since:
- Available in iOS 9.0 and later.
-
supportsAlternateIcons
public boolean supportsAlternateIcons()
- Since:
- Available in iOS 10.3 and later.
-
getAlternateIconName
public java.lang.String getAlternateIconName()
- Since:
- Available in iOS 10.3 and later.
-
setStatusBarOrientation
@Deprecated public void setStatusBarOrientation(UIInterfaceOrientation v)
Deprecated.Deprecated in iOS 9.0. Explicit setting of the status bar orientation is more limited in iOS 6.0 and later- Since:
- Available in iOS 2.0 and later.
-
setStatusBarStyle
@Deprecated public void setStatusBarStyle(UIStatusBarStyle v)
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle]- Since:
- Available in iOS 2.0 and later.
-
setStatusBarHidden
@Deprecated public void setStatusBarHidden(boolean v)
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden]- Since:
- Available in iOS 2.0 and later.
-
main
public static <P extends UIApplication,D extends NSObject & UIApplicationDelegate> void main(java.lang.String[] args, java.lang.Class<P> principalClass, java.lang.Class<D> delegateClass)
-
ContentSizeCategoryDidChangeNotification
public static NSString ContentSizeCategoryDidChangeNotification()
- Since:
- Available in iOS 7.0 and later.
-
ContentSizeCategoryNewValueKey
protected static NSString ContentSizeCategoryNewValueKey()
- Since:
- Available in iOS 7.0 and later.
-
getInvalidBackgroundTask
public static long getInvalidBackgroundTask()
- Since:
- Available in iOS 4.0 and later.
-
getMinimumKeepAliveTimeout
public static double getMinimumKeepAliveTimeout()
- Since:
- Available in iOS 4.0 and later.
-
getBackgroundFetchIntervalMinimum
public static double getBackgroundFetchIntervalMinimum()
- Since:
- Available in iOS 7.0 and later.
-
getBackgroundFetchIntervalNever
public static double getBackgroundFetchIntervalNever()
- Since:
- Available in iOS 7.0 and later.
-
DidEnterBackgroundNotification
public static NSString DidEnterBackgroundNotification()
- Since:
- Available in iOS 4.0 and later.
-
WillEnterForegroundNotification
public static NSString WillEnterForegroundNotification()
- Since:
- Available in iOS 4.0 and later.
-
DidFinishLaunchingNotification
public static NSString DidFinishLaunchingNotification()
-
DidBecomeActiveNotification
public static NSString DidBecomeActiveNotification()
-
WillResignActiveNotification
public static NSString WillResignActiveNotification()
-
DidReceiveMemoryWarningNotification
public static NSString DidReceiveMemoryWarningNotification()
-
WillTerminateNotification
public static NSString WillTerminateNotification()
-
SignificantTimeChangeNotification
public static NSString SignificantTimeChangeNotification()
-
WillChangeStatusBarOrientationNotification
public static NSString WillChangeStatusBarOrientationNotification()
-
DidChangeStatusBarOrientationNotification
public static NSString DidChangeStatusBarOrientationNotification()
-
StatusBarOrientationUserInfoKey
protected static NSString StatusBarOrientationUserInfoKey()
-
WillChangeStatusBarFrameNotification
public static NSString WillChangeStatusBarFrameNotification()
-
DidChangeStatusBarFrameNotification
public static NSString DidChangeStatusBarFrameNotification()
-
StatusBarFrameUserInfoKey
protected static NSString StatusBarFrameUserInfoKey()
-
BackgroundRefreshStatusDidChangeNotification
public static NSString BackgroundRefreshStatusDidChangeNotification()
- Since:
- Available in iOS 7.0 and later.
-
ProtectedDataWillBecomeUnavailableNotification
public static NSString ProtectedDataWillBecomeUnavailableNotification()
- Since:
- Available in iOS 4.0 and later.
-
ProtectedDataDidBecomeAvailableNotification
public static NSString ProtectedDataDidBecomeAvailableNotification()
- Since:
- Available in iOS 4.0 and later.
-
getOpenSettingsURLString
public static java.lang.String getOpenSettingsURLString()
- Since:
- Available in iOS 8.0 and later.
-
UserDidTakeScreenshotNotification
public static NSString UserDidTakeScreenshotNotification()
- Since:
- Available in iOS 7.0 and later.
-
main
protected static int main(int argc, org.robovm.rt.bro.ptr.BytePtr.BytePtrPtr argv, java.lang.String principalClassName, java.lang.String delegateClassName)
-
beginIgnoringInteractionEvents
public void beginIgnoringInteractionEvents()
-
endIgnoringInteractionEvents
public void endIgnoringInteractionEvents()
-
openURL
@Deprecated public boolean openURL(NSURL url)
Deprecated.Deprecated in iOS 10.0. Please use openURL:options:completionHandler: instead- Since:
- Available in iOS 2.0 and later.
-
canOpenURL
public boolean canOpenURL(NSURL url)
- Since:
- Available in iOS 3.0 and later.
-
openURL
public void openURL(NSURL url, UIApplicationOpenURLOptions options, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 10.0 and later.
-
sendEvent
public void sendEvent(UIEvent event)
-
sendAction
public boolean sendAction(org.robovm.objc.Selector action, NSObject target, NSObject sender, UIEvent event)
-
getSupportedInterfaceOrientations
public UIInterfaceOrientationMask getSupportedInterfaceOrientations(UIWindow window)
- Since:
- Available in iOS 6.0 and later.
-
beginBackgroundTask
public long beginBackgroundTask(java.lang.Runnable handler)
- Since:
- Available in iOS 4.0 and later.
-
beginBackgroundTask
public long beginBackgroundTask(java.lang.String taskName, java.lang.Runnable handler)
- Since:
- Available in iOS 7.0 and later.
-
endBackgroundTask
public void endBackgroundTask(long identifier)
- Since:
- Available in iOS 4.0 and later.
-
setMinimumBackgroundFetchInterval
public void setMinimumBackgroundFetchInterval(double minimumBackgroundFetchInterval)
- Since:
- Available in iOS 7.0 and later.
-
registerForRemoteNotifications
public void registerForRemoteNotifications()
- Since:
- Available in iOS 8.0 and later.
-
unregisterForRemoteNotifications
public void unregisterForRemoteNotifications()
- Since:
- Available in iOS 3.0 and later.
-
registerForRemoteNotificationTypes
@Deprecated public void registerForRemoteNotificationTypes(UIRemoteNotificationType types)
Deprecated.Deprecated in iOS 8.0. Use -[UIApplication registerForRemoteNotifications] and UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:]- Since:
- Available in iOS 3.0 and later.
-
getEnabledRemoteNotificationTypes
@Deprecated public UIRemoteNotificationType 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- Since:
- Available in iOS 3.0 and later.
-
presentLocalNotificationNow
@Deprecated public void presentLocalNotificationNow(UILocalNotification notification)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]- Since:
- Available in iOS 4.0 and later.
-
scheduleLocalNotification
@Deprecated public void scheduleLocalNotification(UILocalNotification notification)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter addNotificationRequest:withCompletionHandler:]- Since:
- Available in iOS 4.0 and later.
-
cancelLocalNotification
@Deprecated public void cancelLocalNotification(UILocalNotification notification)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removePendingNotificationRequestsWithIdentifiers:]- Since:
- Available in iOS 4.0 and later.
-
cancelAllLocalNotifications
@Deprecated public void cancelAllLocalNotifications()
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter removeAllPendingNotificationRequests]- Since:
- Available in iOS 4.0 and later.
-
registerUserNotificationSettings
@Deprecated public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
Deprecated.Deprecated in iOS 10.0. Use UserNotifications Framework's -[UNUserNotificationCenter requestAuthorizationWithOptions:completionHandler:] and -[UNUserNotificationCenter setNotificationCategories:]- Since:
- Available in iOS 8.0 and later.
-
beginReceivingRemoteControlEvents
public void beginReceivingRemoteControlEvents()
- Since:
- Available in iOS 4.0 and later.
-
endReceivingRemoteControlEvents
public void endReceivingRemoteControlEvents()
- Since:
- Available in iOS 4.0 and later.
-
setNewsstandIconImage
@Deprecated public void setNewsstandIconImage(UIImage image)
Deprecated.Deprecated in iOS 9.0. Newsstand apps now behave like normal apps on SpringBoard- Since:
- Available in iOS 5.0 and later.
-
setAlternateIcon
public void setAlternateIcon(java.lang.String alternateIconName, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
- Since:
- Available in iOS 10.3 and later.
-
extendStateRestoration
public void extendStateRestoration()
- Since:
- Available in iOS 6.0 and later.
-
completeStateRestoration
public void completeStateRestoration()
- Since:
- Available in iOS 6.0 and later.
-
ignoreSnapshotOnNextApplicationLaunch
public void ignoreSnapshotOnNextApplicationLaunch()
- Since:
- Available in iOS 7.0 and later.
-
registerObjectForStateRestoration
public static void registerObjectForStateRestoration(UIStateRestoring object, java.lang.String restorationIdentifier)
- Since:
- Available in iOS 7.0 and later.
-
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- Since:
- Available in iOS 2.0 and later.
-
setStatusBarStyle
@Deprecated public void setStatusBarStyle(UIStatusBarStyle statusBarStyle, boolean animated)
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController preferredStatusBarStyle]- Since:
- Available in iOS 2.0 and later.
-
setStatusBarHidden
@Deprecated public void setStatusBarHidden(boolean hidden, UIStatusBarAnimation animation)
Deprecated.Deprecated in iOS 9.0. Use -[UIViewController prefersStatusBarHidden]- Since:
- Available in iOS 3.2 and later.
-
setKeepAliveTimeout
@Deprecated public boolean setKeepAliveTimeout(double timeout, java.lang.Runnable keepAliveHandler)
Deprecated.Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method- Since:
- Available in iOS 4.0 and later.
-
clearKeepAliveTimeout
@Deprecated public void clearKeepAliveTimeout()
Deprecated.Deprecated in iOS 9.0. Please use PushKit for VoIP applications instead of calling this method- Since:
- Available in iOS 4.0 and later.
-
-