public class UIApplication extends UIResponder
Constructor and Description |
---|
UIApplication()
The default constructor of the UIAplication.
|
Modifier and Type | Method and Description |
---|---|
int |
applicationIconBadgeNumber() |
int |
applicationState()
The state of the application
|
boolean |
canOpenURL(NSURL url)
Check whether a URL can be opened
|
UIUserNotificationSettings |
currentUserNotificationSettings()
Returns the current notification settings.
|
UIApplicationDelegate |
delegate()
Returns the delegate of the application
|
int |
enabledRemoteNotificationTypes()
Deprecated.
|
boolean |
isIdleTimerDisabled()
Returns a Boolean that shows if the idle timer is enabled.
|
boolean |
isNetworkActivityIndicatorVisible()
Returns a Boolean that shows whether network activity is on.
|
boolean |
isStatusBarHidden()
Deprecated.
|
UIWindow |
keyWindow()
Returns the window of the application.
|
static int |
main(String[] args,
Class<? extends UIApplication> UIApplication,
Class<? extends UIApplicationDelegate> UIApplicationDelegate) |
boolean |
openURL(NSURL URLWithString)
Deprecated.
|
void |
openURL(NSURL url,
Map<String,Object> options,
org.robovm.objc.block.VoidBlock1<Boolean> completion)
Opens the specific URL using the provided URL options.
|
void |
registerForRemoteNotifications()
Registers the application to receive notifications.
|
void |
registerForRemoteNotificationTypes(int UIRemoteNotificationType)
Deprecated.
|
void |
registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
Deprecated.
|
void |
setApplicationIconBadgeNumber(int applicationIconBadgeNumber) |
void |
setDelegate(UIApplicationDelegate delegate)
Sets the delegate for the application.
|
void |
setIdleTimerDisabled(boolean flag)
Sets a Boolean that defines whether the idle timer is enabled.
|
void |
setNetworkActivityIndicatorVisible(boolean networkActivityIndicatorVisible)
Sets a Boolean that defines whether network activity is on.
|
void |
setStatusBarHidden(boolean statusbarhidden,
boolean animated)
Deprecated.
|
void |
setStatusBarOrientation(int UIInterfaceOrientation,
boolean animated)
Deprecated.
|
void |
setStatusBarStyle(int UIStatusBarStyle,
boolean animated)
Deprecated.
|
static UIApplication |
sharedApplication()
Returns the application instance.
|
int |
statusBarOrientation()
Deprecated.
|
int |
statusBarStyle()
Deprecated.
|
void |
unregisterForRemoteNotifications()
Unregisters the application from receiving remote notifications.
|
int |
userInterfaceLayoutDirection()
Return whether the interface layout is left-to-right or right-to-left
|
List<UIWindow> |
windows()
Returns a list with the visible and hidden windows.
|
becomeFirstResponder, isFirstResponder, nextResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UIApplication()
public static UIApplication sharedApplication()
public static int main(String[] args, Class<? extends UIApplication> UIApplication, Class<? extends UIApplicationDelegate> UIApplicationDelegate)
public UIApplicationDelegate delegate()
public void setDelegate(UIApplicationDelegate delegate)
delegate
- The delegate of the application.public boolean isIdleTimerDisabled()
public void setIdleTimerDisabled(boolean flag)
flag
- A Boolean that defines whether the idle timer is enabled.@Deprecated public int statusBarStyle()
UIStatusBarStyle
@Deprecated public void setStatusBarStyle(int UIStatusBarStyle, boolean animated)
UIStatusBarStyle
- The style of the status bar.animated
- Changing style is animated if is set true.UIStatusBarStyle
@Deprecated public boolean isStatusBarHidden()
@Deprecated public void setStatusBarHidden(boolean statusbarhidden, boolean animated)
statusbarhidden
- If true the status bar is hidden.animated
- If true the status bar is hidden with animation.@Deprecated public int statusBarOrientation()
@Deprecated public void setStatusBarOrientation(int UIInterfaceOrientation, boolean animated)
UIInterfaceOrientation
- The new orientation of the status bar.animated
- The change is animated if set true.UIInterfaceOrientation
public boolean isNetworkActivityIndicatorVisible()
public void setNetworkActivityIndicatorVisible(boolean networkActivityIndicatorVisible)
networkActivityIndicatorVisible
- A Boolean that defines whether
network activity is on.public UIWindow keyWindow()
public List<UIWindow> windows()
public int applicationIconBadgeNumber()
public void setApplicationIconBadgeNumber(int applicationIconBadgeNumber)
public boolean canOpenURL(NSURL url)
url
- The URL to checkpublic void openURL(NSURL url, Map<String,Object> options, org.robovm.objc.block.VoidBlock1<Boolean> completion)
url
- The requested URLoptions
- A Map of open options, as described completion
- Callback if the requests to open the URL was successful@Deprecated public boolean openURL(NSURL URLWithString)
URLWithString
- The requested URLpublic void registerForRemoteNotifications()
@Deprecated public void registerForRemoteNotificationTypes(int UIRemoteNotificationType)
UIRemoteNotificationType
- The type of remote notification that the
application is registered to receive.UIRemoteNotificationType
public void unregisterForRemoteNotifications()
@Deprecated public int enabledRemoteNotificationTypes()
UIRemoteNotificationType
@Deprecated public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
notificationSettings
- User's notification settings.public UIUserNotificationSettings currentUserNotificationSettings()
public int userInterfaceLayoutDirection()
UIUserInterfaceLayoutDirection
public int applicationState()
UIApplicationState
Copyright © 2020. All rights reserved.