OMCAnalyticsApplicationDelegate Class Reference
Inherits from | UIResponder |
---|---|
Conforms to | UIApplicationDelegate |
Declared in | OMCAnalyticsApplicationDelegate.h |
Overview
An Analytics client application delegate can subclass this application delegate and the application’s Analytics sessions will correspond with the application’s being in the device’s foreground (i.e. a session will start when the app moves to the foreground and end when the app moves to the background).
NB: Read the comments of any method in this class that the client application delegate class
overrides, as some subclass methods must call the super
implementation for this class
to behave correctly.
NB: Subclasses of this class must “synthesize” the window
property declared by
UIApplicationDelegate
in the subclass implementation:
@synthesize window;
analytics
The application’s Oracle Mobile Cloud Analytics service.
@property (readonly, nonatomic) OMCAnalytics *analytics
Declared In
OMCAnalyticsApplicationDelegate.h
– application:didFinishLaunchingWithOptions:
This implementation sets the value of the analytics
property with the
Analytics service for the mobile backend that is returned by the mobileBackend
method.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Parameters
application |
The singleton app object. |
---|---|
launchOptions |
A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys. |
Discussion
Subclasses must call [super application:application didFinishLaunchingWithOptions:launchOptions]
,
typically at the beginning of the method.
Declared In
OMCAnalyticsApplicationDelegate.h
– mobileBackend
This implementation returns the mobile manager’s mobile backend/
- (OMCMobileBackend *)mobileBackend
Discussion
Subclasses can override this method to return a mobile
backend other than the one held by the mobile manager.
This is particularly useful if the application specifies a mobile backend’s
settings programmatically, rather than via the OMC.plist
file.
Declared In
OMCAnalyticsApplicationDelegate.h
– applicationWillEnterForeground:
This implementation does nothing.
- (void)applicationWillEnterForeground:(UIApplication *)application
Parameters
application |
The singleton app object. |
---|
Discussion
Subclasses are free to override this method.
Declared In
OMCAnalyticsApplicationDelegate.h
– applicationDidBecomeActive:
This implementation starts a new Analytics session.
- (void)applicationDidBecomeActive:(UIApplication *)application
Parameters
application |
The singleton app object. |
---|
Discussion
Subclasses must call [super applicationDidBecomeActive:application]
,
typically at the beginning of the method.
Declared In
OMCAnalyticsApplicationDelegate.h
– applicationWillResignActive:
This implementation does nothing.
- (void)applicationWillResignActive:(UIApplication *)application
Parameters
application |
The singleton app object. |
---|
Discussion
Subclasses are free to override this method.
Declared In
OMCAnalyticsApplicationDelegate.h
– applicationDidEnterBackground:
This implementation ends the current Analytics session.
- (void)applicationDidEnterBackground:(UIApplication *)application
Parameters
application |
The singleton app object. |
---|
Discussion
Subclasses must call [super applicationDidEnterBackground:application]
,
typically at the end of the method.
Declared In
OMCAnalyticsApplicationDelegate.h
– applicationWillTerminate:
This implementation does nothing.
- (void)applicationWillTerminate:(UIApplication *)application
Parameters
application |
The singleton app object. |
---|
Discussion
Subclasses are free to override this method.
Declared In
OMCAnalyticsApplicationDelegate.h