Show / Hide Table of Contents

Class ISN_UIApplication

The centralized point of control and coordination for apps running in iOS.

Inheritance
System.Object
ISN_UIApplication
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.iOS.UIKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UIApplication

Properties

ApplicationDelegate

A set of methods that are called in response to important events in the lifetime of your app.

Declaration
public static ISN_UIApplicationDelegate ApplicationDelegate { get; }
Property Value
Type Description
ISN_UIApplicationDelegate

ApplicationIconBadgeNumber

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.

Declaration
public static long ApplicationIconBadgeNumber { get; set; }
Property Value
Type Description
System.Int64

OpenSettingsURLString

Used to create a URL that you can pass to the OpenURL(String) 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.

Declaration
public static string OpenSettingsURLString { get; }
Property Value
Type Description
System.String

Methods

CanOpenURL(String)

Returns a Boolean value indicating whether or not the URL’s scheme can be handled by some app installed on the device.

Declaration
public static bool CanOpenURL(string url)
Parameters
Type Name Description
System.String url

A URL (Universal Resource Locator). At runtime, the system tests the URL’s scheme to determine if there is an installed app that is registered to handle the scheme. More than one app can be registered to handle a scheme. The URL you pass to this method can have a common scheme or a custom scheme.

Returns
Type Description
System.Boolean

OpenURL(String)

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(String) 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.

Declaration
public static void OpenURL(string url)
Parameters
Type Name Description
System.String url

URL.

RegisterForRemoteNotifications()

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 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 error.

If you want your app’s remote notifications to display alerts, play sounds, or perform other user-facing actions, you must request authorization to do so using the method. If you do not request and receive authorization for your app's interactions, the system delivers all remote notifications to your app silently.

Declaration
public static void RegisterForRemoteNotifications()

Suspend()

Will send an application to background. Can be used to simulate Home button press.

Declaration
public static void Suspend()

UnregisterForRemoteNotifications()

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.

Declaration
public static void UnregisterForRemoteNotifications()
In This Article
Back to top Generated by DocFX