Every iOS app has exactly one instance of
UIApplication. A major role of your app’s application object is to handle the initial routing of incoming user events. It dispatches action messages forwarded to it by control objects. This guide will describe
UIApplication available API
Will send an application to background. Can be used to simulate Home button press.
using SA.iOS.UIKit; ... ISN_UIApplication.Suspend();
Unregister For Remote Notifications
Unregister for all remote notifications received via Apple Push Notification service.
You should call this method in rare circumstances only, such as when a new version of the app removes support for all types of remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.
using SA.iOS.UIKit; ... ISN_UIApplication.UnregisterForRemoteNotifications();
Register For Remote Notifications
Register to receive remote notifications via Apple Push Notification service Call this method to initiate the registration process with Apple Push Notification service. If registration succeeds, the app calls <see cref="ApplicationDelegate"/> object DidRegisterForRemoteNotifications event and passes it a device token. You should pass this token along to the server you use to generate remote notifications for the device. If registration fails, DidRegisterForRemoteNotifications will have an empty token and result with an error.
using SA.iOS.UIKit; ... ISN_UIApplication.RegisterForRemoteNotifications();
A set of methods that are called in response to important events in the lifetime of your app.
using SA.iOS.UIKit; ... ISN_UIApplication.ApplicationDelegate;
Attempts to open the resource at the specified URL asynchronously. Use this method to open the specified resource. If the specified URL scheme is handled by another app, iOS launches that app and passes the URL to it.To determine whether an app is installed that is capable of handling the URL, call the CanOpenURL method before calling this one. Be sure to read the description of that method for an important note about registering the schemes you want to employ.
using SA.iOS.UIKit; ... string url; ISN_UIApplication.OpenURL(url);
Can Open URL
Returns a Boolean value indicating whether or not the URL’s scheme can be handled by some app installed on the device.
using SA.iOS.UIKit; ... string url; ISN_UIApplication.CanOpenURL(url);
Open Settings URL String
Used to create a URL that you can pass to the OpenURL method. When you open the URL built from this string, the system launches the Settings app and displays the app’s custom settings, if it has any.
using SA.iOS.UIKit; ... ISN_UIApplication.OpenURL(ISN_UIApplication.OpenSettingsURLString);
Application Bages Number
The number currently set as the badge of the app icon in Springboard. Set to 0 (zero) to hide the badge number. The default value of this property is 0.
using SA.iOS.UIKit; ... ISN_UIApplication.ApplicationBagesNumber = 0;