public class UIApplication extends UIResponder
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIApplication.Block_beginBackgroundTaskWithExpirationHandler |
static interface |
UIApplication.Block_beginBackgroundTaskWithNameExpirationHandler |
static interface |
UIApplication.Block_openURLOptionsCompletionHandler |
static interface |
UIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandler |
static interface |
UIApplication.Block_requestSceneSessionDestructionOptionsErrorHandler |
static interface |
UIApplication.Block_setAlternateIconNameCompletionHandler |
static interface |
UIApplication.Block_setKeepAliveTimeoutHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
UIApplication(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static UIApplication |
alloc() |
static UIApplication |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
java.lang.String |
alternateIconName()
If `nil`, the primary application icon is being used.
|
long |
applicationIconBadgeNumber()
set to 0 to hide.
|
long |
applicationState() |
boolean |
applicationSupportsShakeToEdit() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
long |
backgroundRefreshStatus()
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.
|
double |
backgroundTimeRemaining() |
long |
beginBackgroundTaskWithExpirationHandler(UIApplication.Block_beginBackgroundTaskWithExpirationHandler handler) |
long |
beginBackgroundTaskWithNameExpirationHandler(java.lang.String taskName,
UIApplication.Block_beginBackgroundTaskWithNameExpirationHandler handler) |
void |
beginIgnoringInteractionEvents()
nested.
|
void |
beginReceivingRemoteControlEvents() |
void |
cancelAllLocalNotifications() |
void |
cancelLocalNotification(UILocalNotification notification) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
canOpenURL(NSURL url) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
void |
clearKeepAliveTimeout()
Deprecated.
|
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
void |
completeStateRestoration() |
NSSet<? extends UIScene> |
connectedScenes()
All of the currently connected UIScene instances
|
UIUserNotificationSettings |
currentUserNotificationSettings()
Returns the enabled user notification settings, also taking into account any systemwide settings.
|
static java.lang.String |
debugDescription_static() |
UIApplicationDelegate |
delegate() |
static java.lang.String |
description_static() |
long |
enabledRemoteNotificationTypes()
Deprecated.
|
void |
endBackgroundTask(long identifier) |
void |
endIgnoringInteractionEvents() |
void |
endReceivingRemoteControlEvents() |
void |
extendStateRestoration()
These methods are used to inform the system that state restoration is occurring asynchronously after the application
has processed its restoration archive on launch.
|
static long |
hash_static() |
void |
ignoreSnapshotOnNextApplicationLaunch()
Indicate the application should not use the snapshot on next launch, even if there is a valid state restoration archive.
|
UIApplication |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isIdleTimerDisabled()
default is NO
|
boolean |
isIgnoringInteractionEvents()
returns YES if we are at least one deep in ignoring events
|
boolean |
isNetworkActivityIndicatorVisible() |
boolean |
isProtectedDataAvailable() |
boolean |
isProximitySensingEnabled()
Deprecated.
|
boolean |
isRegisteredForRemoteNotifications()
Returns YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.
|
boolean |
isStatusBarHidden() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
UIWindow |
keyWindow() |
static UIApplication |
new_objc() |
NSSet<? extends UISceneSession> |
openSessions()
All of the representations that currently have connected UIScene instances or had their sessions persisted by the system (ex: visible in iOS' switcher)
|
boolean |
openURL(NSURL url) |
void |
openURLOptionsCompletionHandler(NSURL url,
NSDictionary<java.lang.String,?> options,
UIApplication.Block_openURLOptionsCompletionHandler completion)
Options are specified in the section below for openURL options.
|
java.lang.String |
preferredContentSizeCategory()
Return the size category
|
void |
presentLocalNotificationNow(UILocalNotification notification) |
void |
registerForRemoteNotifications()
Calling this will result in either application:didRegisterForRemoteNotificationsWithDeviceToken: or application:didFailToRegisterForRemoteNotificationsWithError: to be called on the application delegate.
|
void |
registerForRemoteNotificationTypes(long types)
Deprecated.
|
static void |
registerObjectForStateRestorationRestorationIdentifier(UIStateRestoring object,
java.lang.String restorationIdentifier)
Register non-View/ViewController objects for state restoration so other objects can reference them within state restoration archives.
|
void |
registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
Registering UIUserNotificationSettings more than once results in previous settings being overwritten.
|
void |
requestSceneSessionActivationUserActivityOptionsErrorHandler(UISceneSession sceneSession,
NSUserActivity userActivity,
UISceneActivationRequestOptions options,
UIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandler errorHandler)
Request a given session be activated, first connecting it to the application if necessary.
|
void |
requestSceneSessionDestructionOptionsErrorHandler(UISceneSession sceneSession,
UISceneDestructionRequestOptions options,
UIApplication.Block_requestSceneSessionDestructionOptionsErrorHandler errorHandler)
requests that a given session be closed, disconnecting the currently connected scene if present, and calling the -application:didDiscardSceneSessions: method on the application's delegate
|
void |
requestSceneSessionRefresh(UISceneSession sceneSession)
requests that any system UI representing a scene be updated due to background updates or any other relevant model/state update.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSArray<? extends UILocalNotification> |
scheduledLocalNotifications() |
void |
scheduleLocalNotification(UILocalNotification notification)
copies notification
|
boolean |
sendActionToFromForEvent(org.moe.natj.objc.SEL action,
java.lang.Object target,
java.lang.Object sender,
UIEvent event) |
void |
sendEvent(UIEvent event) |
void |
setAlternateIconNameCompletionHandler(java.lang.String alternateIconName,
UIApplication.Block_setAlternateIconNameCompletionHandler completionHandler)
Pass `nil` to use the primary application icon.
|
void |
setApplicationIconBadgeNumber(long value)
set to 0 to hide.
|
void |
setApplicationSupportsShakeToEdit(boolean value) |
void |
setDelegate_unsafe(UIApplicationDelegate value) |
void |
setDelegate(UIApplicationDelegate value) |
void |
setIdleTimerDisabled(boolean value)
default is NO
|
boolean |
setKeepAliveTimeoutHandler(double timeout,
UIApplication.Block_setKeepAliveTimeoutHandler keepAliveHandler)
Deprecated.
|
void |
setMinimumBackgroundFetchInterval(double minimumBackgroundFetchInterval)
The system guarantees that it will not wake up your application for a background fetch more
frequently than the interval provided.
|
void |
setNetworkActivityIndicatorVisible(boolean value) |
void |
setNewsstandIconImage(UIImage image)
Deprecated.
|
void |
setProximitySensingEnabled(boolean value)
Deprecated.
|
void |
setScheduledLocalNotifications(NSArray<? extends UILocalNotification> value) |
void |
setShortcutItems(NSArray<? extends UIApplicationShortcutItem> value)
Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
|
void |
setStatusBarHidden(boolean value)
Deprecated.
|
void |
setStatusBarHiddenAnimated(boolean hidden,
boolean animated)
Deprecated.
|
void |
setStatusBarHiddenWithAnimation(boolean hidden,
long animation)
Deprecated.
|
void |
setStatusBarOrientation(long value)
Deprecated.
|
void |
setStatusBarOrientationAnimated(long interfaceOrientation,
boolean animated)
Deprecated.
|
void |
setStatusBarStyle(long value)
Deprecated.
|
void |
setStatusBarStyleAnimated(long statusBarStyle,
boolean animated)
Deprecated.
|
static void |
setVersion_static(long aVersion) |
static UIApplication |
sharedApplication() |
NSArray<? extends UIApplicationShortcutItem> |
shortcutItems()
Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
|
CGRect |
statusBarFrame()
returns CGRectZero if the status bar is hidden
|
long |
statusBarOrientation() |
double |
statusBarOrientationAnimationDuration()
Returns the animation duration for the status bar during a 90 degree orientation change.
|
long |
statusBarStyle()
default is UIStatusBarStyleDefault
|
static org.moe.natj.objc.Class |
superclass_static() |
long |
supportedInterfaceOrientationsForWindow(UIWindow window)
The system only calls this method if the application delegate has not
implemented the delegate equivalent.
|
boolean |
supportsAlternateIcons()
If false, alternate icons are not supported for the current process.
|
boolean |
supportsMultipleScenes()
returns YES if the application both declares multiple scene support in its info.plist and the executing environment allows multiple scenes for at least one system type.
|
void |
unregisterForRemoteNotifications() |
long |
userInterfaceLayoutDirection() |
static long |
version_static() |
NSArray<? extends UIWindow> |
windows() |
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static UIApplication alloc()
public static UIApplication allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static UIApplication new_objc()
public static void registerObjectForStateRestorationRestorationIdentifier(UIStateRestoring object, java.lang.String restorationIdentifier)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static UIApplication sharedApplication()
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public long applicationIconBadgeNumber()
public long applicationState()
public boolean applicationSupportsShakeToEdit()
public long backgroundRefreshStatus()
public double backgroundTimeRemaining()
public long beginBackgroundTaskWithExpirationHandler(UIApplication.Block_beginBackgroundTaskWithExpirationHandler handler)
public long beginBackgroundTaskWithNameExpirationHandler(java.lang.String taskName,
UIApplication.Block_beginBackgroundTaskWithNameExpirationHandler handler)
public void beginIgnoringInteractionEvents()
public void beginReceivingRemoteControlEvents()
public boolean canOpenURL(NSURL url)
public void cancelAllLocalNotifications()
public void cancelLocalNotification(UILocalNotification notification)
@Deprecated public void clearKeepAliveTimeout()
public void completeStateRestoration()
public UIUserNotificationSettings currentUserNotificationSettings()
public UIApplicationDelegate delegate()
@Deprecated public long enabledRemoteNotificationTypes()
public void endBackgroundTask(long identifier)
public void endIgnoringInteractionEvents()
public void endReceivingRemoteControlEvents()
public void extendStateRestoration()
public void ignoreSnapshotOnNextApplicationLaunch()
public UIApplication init()
init in class UIResponderpublic boolean isIdleTimerDisabled()
public void setIdleTimerDisabled(boolean value)
public boolean isIgnoringInteractionEvents()
public boolean isNetworkActivityIndicatorVisible()
public void setNetworkActivityIndicatorVisible(boolean value)
public boolean isProtectedDataAvailable()
@Deprecated public boolean isProximitySensingEnabled()
@Deprecated public void setProximitySensingEnabled(boolean value)
public boolean isRegisteredForRemoteNotifications()
public boolean isStatusBarHidden()
@Deprecated public void setStatusBarHidden(boolean value)
public UIWindow keyWindow()
public boolean openURL(NSURL url)
public void openURLOptionsCompletionHandler(NSURL url, NSDictionary<java.lang.String,?> options, UIApplication.Block_openURLOptionsCompletionHandler completion)
public java.lang.String preferredContentSizeCategory()
public void presentLocalNotificationNow(UILocalNotification notification)
@Deprecated public void registerForRemoteNotificationTypes(long types)
public void registerForRemoteNotifications()
public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
public void scheduleLocalNotification(UILocalNotification notification)
public NSArray<? extends UILocalNotification> scheduledLocalNotifications()
public boolean sendActionToFromForEvent(org.moe.natj.objc.SEL action,
java.lang.Object target,
java.lang.Object sender,
UIEvent event)
public void sendEvent(UIEvent event)
public void setApplicationIconBadgeNumber(long value)
public void setApplicationSupportsShakeToEdit(boolean value)
public void setDelegate_unsafe(UIApplicationDelegate value)
public void setDelegate(UIApplicationDelegate value)
@Deprecated
public boolean setKeepAliveTimeoutHandler(double timeout,
UIApplication.Block_setKeepAliveTimeoutHandler keepAliveHandler)
public void setMinimumBackgroundFetchInterval(double minimumBackgroundFetchInterval)
This setter will have no effect unless your application has the "fetch" UIBackgroundMode. See the UIApplicationDelegate method `application:performFetchWithCompletionHandler:` for more.
@Deprecated public void setNewsstandIconImage(UIImage image)
public void setScheduledLocalNotifications(NSArray<? extends UILocalNotification> value)
public void setShortcutItems(NSArray<? extends UIApplicationShortcutItem> value)
@Deprecated
public void setStatusBarHiddenAnimated(boolean hidden,
boolean animated)
@Deprecated
public void setStatusBarHiddenWithAnimation(boolean hidden,
long animation)
@Deprecated public void setStatusBarOrientation(long value)
@Deprecated
public void setStatusBarOrientationAnimated(long interfaceOrientation,
boolean animated)
@Deprecated public void setStatusBarStyle(long value)
@Deprecated
public void setStatusBarStyleAnimated(long statusBarStyle,
boolean animated)
public NSArray<? extends UIApplicationShortcutItem> shortcutItems()
public CGRect statusBarFrame()
public long statusBarOrientation()
public double statusBarOrientationAnimationDuration()
public long statusBarStyle()
public long supportedInterfaceOrientationsForWindow(UIWindow window)
public void unregisterForRemoteNotifications()
public long userInterfaceLayoutDirection()
public java.lang.String alternateIconName()
public void setAlternateIconNameCompletionHandler(java.lang.String alternateIconName,
UIApplication.Block_setAlternateIconNameCompletionHandler completionHandler)
public boolean supportsAlternateIcons()
public NSSet<? extends UIScene> connectedScenes()
public NSSet<? extends UISceneSession> openSessions()
public void requestSceneSessionActivationUserActivityOptionsErrorHandler(UISceneSession sceneSession, NSUserActivity userActivity, UISceneActivationRequestOptions options, UIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandler errorHandler)
public void requestSceneSessionDestructionOptionsErrorHandler(UISceneSession sceneSession, UISceneDestructionRequestOptions options, UIApplication.Block_requestSceneSessionDestructionOptionsErrorHandler errorHandler)
public void requestSceneSessionRefresh(UISceneSession sceneSession)
public boolean supportsMultipleScenes()