Package apple.uikit
Class UIApplication
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIApplication
-
- All Implemented Interfaces:
NSObject,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIUserActivityRestoring
public class UIApplication extends UIResponder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUIApplication.Block_beginBackgroundTaskWithExpirationHandlerstatic interfaceUIApplication.Block_beginBackgroundTaskWithNameExpirationHandlerstatic interfaceUIApplication.Block_openURLOptionsCompletionHandlerstatic interfaceUIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandlerstatic interfaceUIApplication.Block_requestSceneSessionDestructionOptionsErrorHandlerstatic interfaceUIApplication.Block_setAlternateIconNameCompletionHandlerstatic interfaceUIApplication.Block_setKeepAliveTimeoutHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIApplication(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UIApplicationalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)java.lang.StringalternateIconName()If `nil`, the primary application icon is being used.longapplicationIconBadgeNumber()set to 0 to hide. default is 0.longapplicationState()booleanapplicationSupportsShakeToEdit()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)longbackgroundRefreshStatus()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.doublebackgroundTimeRemaining()longbeginBackgroundTaskWithExpirationHandler(UIApplication.Block_beginBackgroundTaskWithExpirationHandler handler)longbeginBackgroundTaskWithNameExpirationHandler(java.lang.String taskName, UIApplication.Block_beginBackgroundTaskWithNameExpirationHandler handler)voidbeginIgnoringInteractionEvents()nested. set should be set during animations & transitions to ignore touch and other eventsvoidbeginReceivingRemoteControlEvents()voidcancelAllLocalNotifications()voidcancelLocalNotification(UILocalNotification notification)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanOpenURL(NSURL url)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()voidclearKeepAliveTimeout()Deprecated.static voidclearTextInputContextIdentifier(java.lang.String identifier)voidcompleteStateRestoration()NSSet<? extends UIScene>connectedScenes()All of the currently connected UIScene instancesUIUserNotificationSettingscurrentUserNotificationSettings()Returns the enabled user notification settings, also taking into account any systemwide settings.static java.lang.StringdebugDescription_static()UIApplicationDelegatedelegate()static java.lang.Stringdescription_static()longenabledRemoteNotificationTypes()Deprecated.voidendBackgroundTask(long identifier)voidendIgnoringInteractionEvents()voidendReceivingRemoteControlEvents()voidextendStateRestoration()These methods are used to inform the system that state restoration is occuring asynchronously after the application has processed its restoration archive on launch.static longhash_static()voidignoreSnapshotOnNextApplicationLaunch()Indicate the application should not use the snapshot on next launch, even if there is a valid state restoration archive.UIApplicationinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisIdleTimerDisabled()default is NObooleanisIgnoringInteractionEvents()returns YES if we are at least one deep in ignoring eventsbooleanisNetworkActivityIndicatorVisible()booleanisProtectedDataAvailable()booleanisProximitySensingEnabled()Deprecated.booleanisRegisteredForRemoteNotifications()Returns YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.booleanisStatusBarHidden()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)UIWindowkeyWindow()static java.lang.Objectnew_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)booleanopenURL(NSURL url)voidopenURLOptionsCompletionHandler(NSURL url, NSDictionary<java.lang.String,?> options, UIApplication.Block_openURLOptionsCompletionHandler completion)Options are specified in the section below for openURL options.java.lang.StringpreferredContentSizeCategory()Return the size categoryvoidpresentLocalNotificationNow(UILocalNotification notification)voidregisterForRemoteNotifications()Calling this will result in either application:didRegisterForRemoteNotificationsWithDeviceToken: or application:didFailToRegisterForRemoteNotificationsWithError: to be called on the application delegate.voidregisterForRemoteNotificationTypes(long types)Deprecated.static voidregisterObjectForStateRestorationRestorationIdentifier(UIStateRestoring object, java.lang.String restorationIdentifier)Register non-View/ViewController objects for state restoration so other objects can reference them within state restoration archives.voidregisterUserNotificationSettings(UIUserNotificationSettings notificationSettings)Registering UIUserNotificationSettings more than once results in previous settings being overwritten.voidrequestSceneSessionActivationUserActivityOptionsErrorHandler(UISceneSession sceneSession, NSUserActivity userActivity, UISceneActivationRequestOptions options, UIApplication.Block_requestSceneSessionActivationUserActivityOptionsErrorHandler errorHandler)Request a given session be activated, first connecting it to the application if necessary.voidrequestSceneSessionDestructionOptionsErrorHandler(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 delegatevoidrequestSceneSessionRefresh(UISceneSession sceneSession)requests that any system UI representing a scene be updated due to background updates or any other relevant model/state update.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSArray<? extends UILocalNotification>scheduledLocalNotifications()voidscheduleLocalNotification(UILocalNotification notification)copies notificationbooleansendActionToFromForEvent(org.moe.natj.objc.SEL action, java.lang.Object target, java.lang.Object sender, UIEvent event)voidsendEvent(UIEvent event)voidsetAlternateIconNameCompletionHandler(java.lang.String alternateIconName, UIApplication.Block_setAlternateIconNameCompletionHandler completionHandler)Pass `nil` to use the primary application icon.voidsetApplicationIconBadgeNumber(long value)set to 0 to hide. default is 0.voidsetApplicationSupportsShakeToEdit(boolean value)voidsetDelegate(UIApplicationDelegate value)voidsetDelegate_unsafe(UIApplicationDelegate value)voidsetIdleTimerDisabled(boolean value)default is NObooleansetKeepAliveTimeoutHandler(double timeout, UIApplication.Block_setKeepAliveTimeoutHandler keepAliveHandler)Deprecated.voidsetMinimumBackgroundFetchInterval(double minimumBackgroundFetchInterval)The system guarantees that it will not wake up your application for a background fetch more frequently than the interval provided.voidsetNetworkActivityIndicatorVisible(boolean value)voidsetNewsstandIconImage(UIImage image)Deprecated.voidsetProximitySensingEnabled(boolean value)Deprecated.voidsetScheduledLocalNotifications(NSArray<? extends UILocalNotification> value)voidsetShortcutItems(NSArray<? extends UIApplicationShortcutItem> value)Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.voidsetStatusBarHidden(boolean value)Deprecated.voidsetStatusBarHiddenAnimated(boolean hidden, boolean animated)Deprecated.voidsetStatusBarHiddenWithAnimation(boolean hidden, long animation)Deprecated.voidsetStatusBarOrientation(long value)Deprecated.voidsetStatusBarOrientationAnimated(long interfaceOrientation, boolean animated)Deprecated.voidsetStatusBarStyle(long value)Deprecated.voidsetStatusBarStyleAnimated(long statusBarStyle, boolean animated)Deprecated.static voidsetVersion_static(long aVersion)static UIApplicationsharedApplication()NSArray<? extends UIApplicationShortcutItem>shortcutItems()Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.CGRectstatusBarFrame()returns CGRectZero if the status bar is hiddenlongstatusBarOrientation()doublestatusBarOrientationAnimationDuration()Returns the animation duration for the status bar during a 90 degree orientation change.longstatusBarStyle()default is UIStatusBarStyleDefaultstatic org.moe.natj.objc.Classsuperclass_static()longsupportedInterfaceOrientationsForWindow(UIWindow window)The system only calls this method if the application delegate has not implemented the delegate equivalent.booleansupportsAlternateIcons()If false, alternate icons are not supported for the current process.booleansupportsMultipleScenes()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.voidunregisterForRemoteNotifications()longuserInterfaceLayoutDirection()static longversion_static()NSArray<? extends UIWindow>windows()-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIApplication alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
registerObjectForStateRestorationRestorationIdentifier
public 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. If the object implements encode/decode, those methods will be called during save/restore. Obj and identifier must not be nil, or will raise UIRestorationObjectRegistrationException. Objects do not need to be unregistered when they are deleted, the State Restoration system will notice and stop tracking the object.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
sharedApplication
public static UIApplication sharedApplication()
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
applicationIconBadgeNumber
public long applicationIconBadgeNumber()
set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to set the icon badge.
-
applicationState
public long applicationState()
-
applicationSupportsShakeToEdit
public boolean applicationSupportsShakeToEdit()
-
backgroundRefreshStatus
public 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. Observe UIApplicationBackgroundRefreshStatusDidChangeNotification to be notified of changes.
-
backgroundTimeRemaining
public double backgroundTimeRemaining()
-
beginBackgroundTaskWithExpirationHandler
public long beginBackgroundTaskWithExpirationHandler(UIApplication.Block_beginBackgroundTaskWithExpirationHandler handler)
-
beginBackgroundTaskWithNameExpirationHandler
public long beginBackgroundTaskWithNameExpirationHandler(java.lang.String taskName, UIApplication.Block_beginBackgroundTaskWithNameExpirationHandler handler)
-
beginIgnoringInteractionEvents
public void beginIgnoringInteractionEvents()
nested. set should be set during animations & transitions to ignore touch and other events
-
beginReceivingRemoteControlEvents
public void beginReceivingRemoteControlEvents()
-
canOpenURL
public boolean canOpenURL(NSURL url)
-
cancelAllLocalNotifications
public void cancelAllLocalNotifications()
-
cancelLocalNotification
public void cancelLocalNotification(UILocalNotification notification)
-
clearKeepAliveTimeout
@Deprecated public void clearKeepAliveTimeout()
Deprecated.
-
completeStateRestoration
public void completeStateRestoration()
-
currentUserNotificationSettings
public UIUserNotificationSettings currentUserNotificationSettings()
Returns the enabled user notification settings, also taking into account any systemwide settings.
-
delegate
public UIApplicationDelegate delegate()
-
enabledRemoteNotificationTypes
@Deprecated public long enabledRemoteNotificationTypes()
Deprecated.Returns the enabled types, also taking into account any systemwide settings; doesn't relate to connectivity.
-
endBackgroundTask
public void endBackgroundTask(long identifier)
-
endIgnoringInteractionEvents
public void endIgnoringInteractionEvents()
-
endReceivingRemoteControlEvents
public void endReceivingRemoteControlEvents()
-
extendStateRestoration
public void extendStateRestoration()
These methods are used to inform the system that state restoration is occuring asynchronously after the application has processed its restoration archive on launch. In the even of a crash, the system will be able to detect that it may have been caused by a bad restoration archive and arrange to ignore it on a subsequent application launch.
-
ignoreSnapshotOnNextApplicationLaunch
public void ignoreSnapshotOnNextApplicationLaunch()
Indicate the application should not use the snapshot on next launch, even if there is a valid state restoration archive. This should only be called from methods invoked from State Preservation, else it is ignored.
-
init
public UIApplication init()
- Overrides:
initin classUIResponder
-
isIdleTimerDisabled
public boolean isIdleTimerDisabled()
default is NO
-
setIdleTimerDisabled
public void setIdleTimerDisabled(boolean value)
default is NO
-
isIgnoringInteractionEvents
public boolean isIgnoringInteractionEvents()
returns YES if we are at least one deep in ignoring events
-
isNetworkActivityIndicatorVisible
public boolean isNetworkActivityIndicatorVisible()
-
setNetworkActivityIndicatorVisible
public void setNetworkActivityIndicatorVisible(boolean value)
-
isProtectedDataAvailable
public boolean isProtectedDataAvailable()
-
isProximitySensingEnabled
@Deprecated public boolean isProximitySensingEnabled()
Deprecated.default is NO. see UIDevice for replacement
-
setProximitySensingEnabled
@Deprecated public void setProximitySensingEnabled(boolean value)
Deprecated.default is NO. see UIDevice for replacement
-
isRegisteredForRemoteNotifications
public boolean isRegisteredForRemoteNotifications()
Returns YES if the application is currently registered for remote notifications, taking into account any systemwide settings; doesn't relate to connectivity.
-
isStatusBarHidden
public boolean isStatusBarHidden()
-
setStatusBarHidden
@Deprecated public void setStatusBarHidden(boolean value)
Deprecated.Setting statusBarHidden does nothing if your application is using the default UIViewController-based status bar system.
-
keyWindow
public UIWindow keyWindow()
-
openURL
public boolean openURL(NSURL url)
-
openURLOptionsCompletionHandler
public void openURLOptionsCompletionHandler(NSURL url, NSDictionary<java.lang.String,?> options, UIApplication.Block_openURLOptionsCompletionHandler completion)
Options are specified in the section below for openURL options. An empty options dictionary will result in the same behavior as the older openURL call, aside from the fact that this is asynchronous and calls the completion handler rather than returning a result. The completion handler is called on the main queue.
-
preferredContentSizeCategory
public java.lang.String preferredContentSizeCategory()
Return the size category
-
presentLocalNotificationNow
public void presentLocalNotificationNow(UILocalNotification notification)
-
registerForRemoteNotificationTypes
@Deprecated public void registerForRemoteNotificationTypes(long types)
Deprecated.
-
registerForRemoteNotifications
public void registerForRemoteNotifications()
Calling this will result in either application:didRegisterForRemoteNotificationsWithDeviceToken: or application:didFailToRegisterForRemoteNotificationsWithError: to be called on the application delegate. Note: these callbacks will be made only if the application has successfully registered for user notifications with registerUserNotificationSettings:, or if it is enabled for Background App Refresh.
-
registerUserNotificationSettings
public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
Registering UIUserNotificationSettings more than once results in previous settings being overwritten.
-
scheduleLocalNotification
public void scheduleLocalNotification(UILocalNotification notification)
copies notification
-
scheduledLocalNotifications
public NSArray<? extends UILocalNotification> scheduledLocalNotifications()
-
sendActionToFromForEvent
public boolean sendActionToFromForEvent(org.moe.natj.objc.SEL action, java.lang.Object target, java.lang.Object sender, UIEvent event)
-
sendEvent
public void sendEvent(UIEvent event)
-
setApplicationIconBadgeNumber
public void setApplicationIconBadgeNumber(long value)
set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being able to set the icon badge.
-
setApplicationSupportsShakeToEdit
public void setApplicationSupportsShakeToEdit(boolean value)
-
setDelegate_unsafe
public void setDelegate_unsafe(UIApplicationDelegate value)
-
setDelegate
public void setDelegate(UIApplicationDelegate value)
-
setKeepAliveTimeoutHandler
@Deprecated public boolean setKeepAliveTimeoutHandler(double timeout, UIApplication.Block_setKeepAliveTimeoutHandler keepAliveHandler)Deprecated.
-
setMinimumBackgroundFetchInterval
public 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. 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. This setter will have no effect unless your application has the "fetch" UIBackgroundMode. See the UIApplicationDelegate method `application:performFetchWithCompletionHandler:` for more.
-
setNewsstandIconImage
@Deprecated public void setNewsstandIconImage(UIImage image)
Deprecated.
-
setScheduledLocalNotifications
public void setScheduledLocalNotifications(NSArray<? extends UILocalNotification> value)
-
setShortcutItems
public void setShortcutItems(NSArray<? extends UIApplicationShortcutItem> value)
Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
-
setStatusBarHiddenAnimated
@Deprecated public void setStatusBarHiddenAnimated(boolean hidden, boolean animated)Deprecated.
-
setStatusBarHiddenWithAnimation
@Deprecated public void setStatusBarHiddenWithAnimation(boolean hidden, long animation)Deprecated.
-
setStatusBarOrientation
@Deprecated public void setStatusBarOrientation(long value)
Deprecated.Explicit setting of the status bar orientation is more limited in iOS 6.0 and later.
-
setStatusBarOrientationAnimated
@Deprecated public void setStatusBarOrientationAnimated(long interfaceOrientation, boolean animated)Deprecated.
-
setStatusBarStyle
@Deprecated public void setStatusBarStyle(long value)
Deprecated.Setting the statusBarStyle does nothing if your application is using the default UIViewController-based status bar system.
-
setStatusBarStyleAnimated
@Deprecated public void setStatusBarStyleAnimated(long statusBarStyle, boolean animated)Deprecated.
-
shortcutItems
public NSArray<? extends UIApplicationShortcutItem> shortcutItems()
Register shortcuts to display on the home screen, or retrieve currently registered shortcuts.
-
statusBarFrame
public CGRect statusBarFrame()
returns CGRectZero if the status bar is hidden
-
statusBarOrientation
public long statusBarOrientation()
-
statusBarOrientationAnimationDuration
public double statusBarOrientationAnimationDuration()
Returns the animation duration for the status bar during a 90 degree orientation change. It should be doubled for a 180 degree orientation change.
-
statusBarStyle
public long statusBarStyle()
default is UIStatusBarStyleDefault
-
supportedInterfaceOrientationsForWindow
public long supportedInterfaceOrientationsForWindow(UIWindow window)
The system only calls this method if the application delegate has not implemented the delegate equivalent. It returns the orientations specified by the application's info.plist. If no supported interface orientations were specified it will return UIInterfaceOrientationMaskAll on an iPad and UIInterfaceOrientationMaskAllButUpsideDown on a phone. The return value should be one of the UIInterfaceOrientationMask values which indicates the orientations supported by this application.
-
unregisterForRemoteNotifications
public void unregisterForRemoteNotifications()
-
userInterfaceLayoutDirection
public long userInterfaceLayoutDirection()
-
alternateIconName
public java.lang.String alternateIconName()
If `nil`, the primary application icon is being used.
-
setAlternateIconNameCompletionHandler
public void setAlternateIconNameCompletionHandler(java.lang.String alternateIconName, UIApplication.Block_setAlternateIconNameCompletionHandler completionHandler)Pass `nil` to use the primary application icon. The completion handler will be invoked asynchronously on an arbitrary background queue; be sure to dispatch back to the main queue before doing any further UI work.
-
supportsAlternateIcons
public boolean supportsAlternateIcons()
If false, alternate icons are not supported for the current process.
-
connectedScenes
public NSSet<? extends UIScene> connectedScenes()
All of the currently connected UIScene instances
-
openSessions
public 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)
-
requestSceneSessionActivationUserActivityOptionsErrorHandler
public 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. Providing a session will activate, connecting if necessary, the interface backed by the already existing UISceneSession. Providing a user activity will dispatch that activity to the provided session's scene. If no session is provided, then the system will select one (possibly creating a new session, if appropriate) and pass the activity to the session scene's delegate.
-
requestSceneSessionDestructionOptionsErrorHandler
public 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
-
requestSceneSessionRefresh
public 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.
-
supportsMultipleScenes
public 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. NO otherwise.
-
-