public class UIApplication extends UIResponder
Constructor and Description |
---|
UIApplication()
The default constructor of the UIAplication.
|
Modifier and Type | Method and Description |
---|---|
int |
applicationIconBadgeNumber() |
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 |
registerForRemoteNotifications()
Registers the application to receive notifications.
|
void |
registerForRemoteNotificationTypes(int uiRemoteNotificationType)
Deprecated.
|
void |
registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
Registers the notification settings that the user selects.
|
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.
|
List<UIWindow> |
windows()
Returns a list with the visible and hidden windows.
|
becomeFirstResponder, isFirstResponder, nextResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
performSelector, performSelectorOnMainThread, release, retain, setValue, valueForKey
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)
@Deprecated public boolean openURL(NSURL URLWithString)
URLWithString
- An object with the specified scheme for the URL.public 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
public void registerUserNotificationSettings(UIUserNotificationSettings notificationSettings)
notificationSettings
- User's notification settings.public UIUserNotificationSettings currentUserNotificationSettings()
Copyright © 2018. All rights reserved.