Class ISN_UIApplicationDelegate
A set of methods that are called in response to important events in the lifetime of your app.
Inheritance
Inherited Members
Namespace: SA.iOS.UIKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UIApplicationDelegate
Constructors
ISN_UIApplicationDelegate()
Initialization of ISN_UIApplicationDelegate and call native ISN_UIApplicationDelegate subscribe method with callback.
Declaration
public ISN_UIApplicationDelegate()
Properties
ApplicationDidBecomeActive
Tells the delegate that the app has become active.
This method is called to let your app know that it moved from the inactive to active state. This can occur because your app was launched by the user or the system. Apps can also return to the active state if the user chooses to ignore an interruption (such as an incoming phone call or SMS message) that sent the app temporarily to the inactive state.
You should use this method to restart any tasks that were paused (or not yet started) while the app was inactive. For example, you could use it to restart timers or throttle up OpenGL ES frame rates. If your app was previously in the background, you could also use it to refresh your app’s user interface.
Declaration
public SA_iEvent ApplicationDidBecomeActive { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ApplicationDidEnterBackground
Tells the delegate that the app is now in the background. Use this method to release shared resources, invalidate timers, and store enough app state information to restore your app to its current state in case it is terminated later. You should also disable updates to your app’s user interface and avoid using some types of shared system resources (such as the user’s contacts database). It is also imperative that you avoid using OpenGL ES in the background.
Your implementation of this method has approximately five seconds to perform any tasks and return.
Declaration
public SA_iEvent ApplicationDidEnterBackground { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ApplicationDidReceiveMemoryWarning
Tells the delegate when the app receives a memory warning from the system.
Your implementation of this method should free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
It is strongly recommended that you implement this method. If your app does not release enough memory during low-memory conditions, the system may terminate it outright.
Declaration
public SA_iEvent ApplicationDidReceiveMemoryWarning { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ApplicationWillEnterForeground
Tells the delegate that the app is about to enter the foreground.
In iOS 4.0 and later, this method is called as part of the transition from the background to the active state. You can use this method to undo many of the changes you made to your app upon entering the background. The call to this method is invariably followed by a call to the ApplicationDidBecomeActive method, which then moves the app from the inactive to the active state.
Declaration
public SA_iEvent ApplicationWillEnterForeground { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ApplicationWillResignActive
Tells the delegate that the app is about to become inactive.
This method is called to let your app know that it is about to move from the active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the app and it begins the transition to the background state. An app in the inactive state continues to run but does not dispatch incoming events to responders.
You should use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.Games should use this method to pause the game. An app in the inactive state should do minimal work while it waits to transition to either the active or background state.
If your app has unsaved user data, you can save it here to ensure that it is not lost. However, it is recommended that you save user data at appropriate points throughout the execution of your app, usually in response to specific actions. For example, save data when the user dismisses a data entry screen. Do not rely on specific app state transitions to save all of your app’s critical data.
Declaration
public SA_iEvent ApplicationWillResignActive { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ApplicationWillTerminate
Tells the delegate when the app is about to terminate.
This method lets your app know that it is about to be terminated and purged from memory entirely. You should use this method to perform any final clean-up tasks for your app, such as freeing shared resources, saving user data, and invalidating timers. Your implementation of this method has approximately five seconds to perform any tasks and return. If the method does not return before time expires, the system may kill the process altogether.
Declaration
public SA_iEvent ApplicationWillTerminate { get; }
Property Value
Type | Description |
---|---|
SA_iEvent |
ContinueUserActivity
Tells the delegate that the data for continuing an activity is available.
The app calls this method when it receives data associated with a user activity. For example, when the user uses Handoff to transfer an activity from a different device. Use this method to update your iOS app so that the user can continue the activity from where they left off.
Declaration
public SA_iEvent<string> ContinueUserActivity { get; }
Property Value
Type | Description |
---|---|
SA_iEvent<System.String> |
DidRegisterForRemoteNotifications
Tells the delegate result of app attempt to registered with Apple Push Notification service (APNs).
After you call the RegisterForRemoteNotifications() method, the app calls this method when device registration completes. In your implementation of this method, connect with your push notification server and give the token to it. APNs pushes notifications only to the device represented by the token. Or act accordingly to a given error description.
The app might call this method in other rare circumstances, such as when the user launches an app after having restored a device from data that is not the device’s backup data. In this exceptional case, the app won’t know the new device’s token until the user launches it.
For more information about how to implement remote notifications in your app, see Local and Remote Notification Programming Guide.
Declaration
public SA_iEvent<ISN_UIRegisterRemoteNotificationsResult> DidRegisterForRemoteNotifications { get; }
Property Value
Type | Description |
---|---|
SA_iEvent<ISN_UIRegisterRemoteNotificationsResult> |
OpenURL
Asks the delegate to open a resource specified by a URL
If a URL arrives while your app is suspended or running in the background, the system moves your app to the foreground prior to calling this method.
Declaration
public SA_iEvent<string> OpenURL { get; }
Property Value
Type | Description |
---|---|
SA_iEvent<System.String> |
PerformActionForShortcutItem
Called when the user selects a Home screen quick action for your app, except when you’ve intercepted the interaction in a launch method.
Declaration
public SA_iEvent<ISN_UIApplicationShortcutItem> PerformActionForShortcutItem { get; }
Property Value
Type | Description |
---|---|
SA_iEvent<ISN_UIApplicationShortcutItem> |
Methods
GetAppOpenShortcutItem()
In case application was launched using Home screen quick action,
This method will return instance of ISN_UIApplicationShortcutItem,
with the correspondent item type.
null
if app wasn't launched using Home screen quick action.
Declaration
public ISN_UIApplicationShortcutItem GetAppOpenShortcutItem()
Returns
Type | Description |
---|---|
ISN_UIApplicationShortcutItem |
GetLaunchUniversalLink()
If application was launched usning deeplinking, method will return URL that was used to launch the app. An Empty string will be returns otherwise.
Declaration
public string GetLaunchUniversalLink()
Returns
Type | Description |
---|---|
System.String |
GetLaunchURL()
If your app has received request to open specific URL, the URL will be saved and always accessible by this method. Methods will return an empty string if no open URL was received
Declaration
public string GetLaunchURL()
Returns
Type | Description |
---|---|
System.String | The launch URL. |