Mobile API Reference  MicroStrategy 2019
MSIAppContext Class Reference

#import <MSIAppContext.h>

Inheritance diagram for MSIAppContext:

Instance Methods

(void) - displayErrorInAlertViewWithErrorDetails:
 
(void) - displayErrorInAlertViewWithTitle:message:
 
(void) - displayErrorInAlertViewWithTitle:message:delegate:
 
(void) - displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:
 
(void) - displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:
 
(void) - displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:
 
(void) - displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:cancelButtonTitle:
 
(void) - displayErrorInAlertViewWithTitle:message:blocks:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:cancelButtonTitle:
 
(void) - dismissErrorAlertView
 
(void) - dismissErrorAlertView:
 
(void) - enableErrorAlertView:
 
(void) - dismissErrorAlertViewWithErrorDetails:delegate:
 
(void) - displayFloatingViewOnView:withText:viewHastoobar:hasActivityIndicator:position:
 
(void) - displayFloatingView:viewHastoobar:autoHide:
 
(void) - displayFloatingView:viewHastoobar:
 
(void) - hideFloatingView
 
(BOOL- networkIsReachable
 
(void) - deleteAllCaches
 
(void) - deleteProjectCaches:
 
(void) - deleteServerCaches:
 
(void) - deleteNotProjectLevelCaches
 
(void) - updateDeferredTaskAfterProjectUpdated
 
(void) - displayLoadingIndicatorOnView:customView:text:textLayoutHorizontal:
 
(void) - displayLoadingIndicatorOnView:customView:text:
 
(void) - hideLoadingIndicatorOnView:
 
(void) - prepareImageCache
 
(void) - prepareImageCache:
 
(void) - setupPeriodicConfigurationAutoupdateCheck
 
(void) - startStandAloneService:
 
(void) - displayAndHideMessage:
 
(TransPendingListModel *) - getTransPendingListModel
 
(void) - addToUnconciledProjects:
 
(void) - setNumberAndDateLocaleId:
 
(NSLocale *) - numberAndDateLocale
 
(NSCalendar *) - getCalendar
 
(NSCalendar *) - getAutoupdatingCurrentCalendar
 
(void) - handleMailto:
 
(void) - handleHttp:
 
(void) - registerForNotificationWithAPN
 
(void) - unRegisterForNotificationWithAPN
 
(void) - removeDeviceTokenforProject:
 
(BOOL- isNewsstandEnabled
 
(void) - endExtendedBackgroundTask
 
(void) - startConfigurationUpdate
 
(void) - dismissConfigurationUpdateAlert
 
(void) - showOfflineBanner
 
(void) - removeAllModalViewControllers:
 
(void) - logout
 
(DSSWCManager *) - mDSSWCManager
 
(MSMBackgroundTransferManager *) - mMSTRBackgroundTransferMgr
 
(void) - handleApplicationStartupInitialization:
 
(void) - handleApplicationEnterForeground
 
(void) - handleApplicationResignActive
 
(void) - handleApplicationEnterBackground
 
(void) - handleApplicationWillTerminate
 
(void) - handleDidRegisterForRemoteNotificationsWithDeviceToken:
 
(void) - handleDidFailToRegisterForRemoteNotificationsWithError:
 
(BOOL- useDefaultPreferences
 
(BOOL- updateExistingPreferences
 
(BOOL- needsliveConfigFetch
 
(BOOL- applicationLauncherNeedsSetup
 
(void) - handleDidReceiveRemoteNotification:
 
(void) - handleDidReceiveRemoteNotificationForNK:
 
(void) - handleApplicationStartupFinished
 
(void) - handleApplicationInitialized
 
(BOOL- isMSTRConfigID:excludeCurrent:
 
(void) - cleanupMobileAddressesForServers
 
(void) - reconcile
 
(void) - reconcileWithDoesSuppressNetworkErrorAlert:
 
(void) - reconcile:
 
(void) - reconcile:suppressNetworkErrorAlerts:
 
(void) - reconcileProject:
 
(void) - reconcileProject:suppressNetworkErrorAlerts:
 
(void) - reconcileProject:scope:
 
(void) - reconcileProject:scope:suppressNetworkErrorAlerts:
 
(void) - reconcileReport:report:
 
(void) - reconcileReport:report:suppressNetworkErrorAlerts:
 
(void) - reconcileNotificationSubscription:
 
(void) - reconcileNotificationSubscription:suppressNetworkErrorAlerts:
 
(id< ReconcileListener >) - getReconcileListener
 
(void) - setReconcileListener:withShakeEnabled:
 
(void) - removeReconcileListener
 
(void) - setupPeriodicReconcile
 
(void) - cancelReconcile
 

Class Methods

(MSIAppContext *) + getInstance
 

Properties

NSArray * unreconciledProjects
 
NSDictionary * notificationInfoDictionary
 
id< PushNotificationListenerPNListener
 
BOOL compatibilityErrorHandled
 
BOOL softwareEncryptionEnabled
 
DSSWCManager * mDSSWCManager
 
NewsstandDownloadManager * mNewsstandDownloadMgr
 
BOOL isLaunchedByNewsstandPush
 
BOOL reconcileInitiatedBySilentNotification
 
MSMBackgroundTransferManager * mMSTRBackgroundTransferMgr
 
UIBackgroundTaskIdentifier bgTask
 
BOOL isRunningTasks
 
BOOL showMobileLoginPromptAutomatically
 
UINavigationController * customizedNavigationController
 

Detailed Description

This class represents the state that we need to maintain globally during the execution of any MicroStrategy based app.

Method Documentation

◆ addToUnconciledProjects:()

- (void) addToUnconciledProjects: (MSIProjectInfo *)  project

◆ applicationLauncherNeedsSetup()

- (BOOL) applicationLauncherNeedsSetup

Provided by category MSIAppContext(Delegate).

◆ cancelReconcile()

- (void) cancelReconcile

Provided by category MSIAppContext(Reconcile).

◆ cleanupMobileAddressesForServers()

- (void) cleanupMobileAddressesForServers

Provided by category MSIAppContext(Delegate).

◆ deleteAllCaches()

- (void) deleteAllCaches

Delete all caches of the app. This method won't clear certificate and encryption key

◆ deleteNotProjectLevelCaches()

- (void) deleteNotProjectLevelCaches

Clear some caches can't be deleted at project level, like tmp directory, ...

◆ deleteProjectCaches:()

- (void) deleteProjectCaches: (MSIProjectConfiguration *)  projectConfig

Clear all caches of the project.

Parameters
projectConfigthe project whose caches will be deleted

◆ deleteServerCaches:()

- (void) deleteServerCaches: (WebServerConfiguration *)  wsConfig

Delete caches for all projects in this server

Parameters
wsConfigthe web server whose caches will be deleted

◆ dismissConfigurationUpdateAlert()

- (void) dismissConfigurationUpdateAlert

◆ dismissErrorAlertView()

- (void) dismissErrorAlertView

◆ dismissErrorAlertView:()

- (void) dismissErrorAlertView: (id)  delegate

◆ dismissErrorAlertViewWithErrorDetails:delegate:()

- (void) dismissErrorAlertViewWithErrorDetails: (ErrorDetails *)  errorDetails
delegate: (id)  delegate 

◆ displayAndHideMessage:()

- (void) displayAndHideMessage: (NSString *)  text

◆ displayErrorInAlertViewWithErrorDetails:()

- (void) displayErrorInAlertViewWithErrorDetails: (ErrorDetails *)  errorDetails

◆ displayErrorInAlertViewWithTitle:message:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message 

◆ displayErrorInAlertViewWithTitle:message:blocks:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:cancelButtonTitle:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
blocks: (void(^)(MSIAlertView *alertView, NSInteger buttonIndex))  completionHandler
dismissPrevious: (BOOL dismiss
withOtherButton: (BOOL otherButton
okButtonTitle: (NSString *)  okButtonTitle
otherButtonTitle: (NSString *)  otherButtonTitle
cancelButtonTitle: (NSString *)  cancelButtonTitle 

◆ displayErrorInAlertViewWithTitle:message:delegate:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
delegate: (id)  delegate 

◆ displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
delegate: (id)  delegate
dismissPrevious: (BOOL dismiss 

◆ displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
delegate: (id)  delegate
dismissPrevious: (BOOL dismiss
withOtherButton: (BOOL otherButton 

◆ displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
delegate: (id)  delegate
dismissPrevious: (BOOL dismiss
withOtherButton: (BOOL otherButton
okButtonTitle: (NSString *)  okButtonTitle
otherButtonTitle: (NSString *)  otherButtonTitle 

◆ displayErrorInAlertViewWithTitle:message:delegate:dismissPrevious:withOtherButton:okButtonTitle:otherButtonTitle:cancelButtonTitle:()

- (void) displayErrorInAlertViewWithTitle: (NSString *)  title
message: (NSString *)  message
delegate: (id)  delegate
dismissPrevious: (BOOL dismiss
withOtherButton: (BOOL otherButton
okButtonTitle: (NSString *)  okButtonTitle
otherButtonTitle: (NSString *)  otherButtonTitle
cancelButtonTitle: (NSString *)  cancelButtonTitle 

◆ displayFloatingView:viewHastoobar:()

- (void) displayFloatingView: (NSString *)  text
viewHastoobar: (BOOL viewHastoobar 

◆ displayFloatingView:viewHastoobar:autoHide:()

- (void) displayFloatingView: (NSString *)  text
viewHastoobar: (BOOL viewHastoobar
autoHide: (BOOL autoHide 

◆ displayFloatingViewOnView:withText:viewHastoobar:hasActivityIndicator:position:()

- (void) displayFloatingViewOnView: (UIView *)  view
withText: (NSString *)  text
viewHastoobar: (BOOL viewHastoobar
hasActivityIndicator: (BOOL hasActivityIndicator
position: (NSInteger)  pos 

Displays the floating view used to indicate some activity like Loading... Pivoting... or Sorting... This method is used in conjunction woth hideFloatingView to hide and remove the shown floating view

Parameters
viewthe view in which the floatingView is added
position,theposition of the floating view. The value could be TOP, CENTER or BOTTOM

◆ displayLoadingIndicatorOnView:customView:text:()

- (void) displayLoadingIndicatorOnView: (UIView *)  view
customView: (UIView *)  customView
text: (NSString *)  text 

◆ displayLoadingIndicatorOnView:customView:text:textLayoutHorizontal:()

- (void) displayLoadingIndicatorOnView: (UIView *)  view
customView: (UIView *)  customView
text: (NSString *)  text
textLayoutHorizontal: (BOOL textLayoutHorizontal 

◆ enableErrorAlertView:()

- (void) enableErrorAlertView: (BOOL enable

◆ endExtendedBackgroundTask()

- (void) endExtendedBackgroundTask

◆ getAutoupdatingCurrentCalendar()

- (NSCalendar*) getAutoupdatingCurrentCalendar

◆ getCalendar()

- (NSCalendar*) getCalendar

◆ getInstance()

+ (MSIAppContext*) getInstance

◆ getReconcileListener()

- (id<ReconcileListener>) getReconcileListener

Provided by category MSIAppContext(Reconcile).

◆ getTransPendingListModel()

- (TransPendingListModel*) getTransPendingListModel

◆ handleApplicationEnterBackground()

- (void) handleApplicationEnterBackground

Provided by category MSIAppContext(Delegate).

◆ handleApplicationEnterForeground()

- (void) handleApplicationEnterForeground

Provided by category MSIAppContext(Delegate).

◆ handleApplicationInitialized()

- (void) handleApplicationInitialized

Provided by category MSIAppContext(Delegate).

◆ handleApplicationResignActive()

- (void) handleApplicationResignActive

Provided by category MSIAppContext(Delegate).

◆ handleApplicationStartupFinished()

- (void) handleApplicationStartupFinished

Provided by category MSIAppContext(Delegate).

◆ handleApplicationStartupInitialization:()

- (void) handleApplicationStartupInitialization: (BOOL withURL

Provided by category MSIAppContext(Delegate).

◆ handleApplicationWillTerminate()

- (void) handleApplicationWillTerminate

Provided by category MSIAppContext(Delegate).

◆ handleDidFailToRegisterForRemoteNotificationsWithError:()

- (void) handleDidFailToRegisterForRemoteNotificationsWithError: (NSError *)  error

Provided by category MSIAppContext(Delegate).

◆ handleDidReceiveRemoteNotification:()

- (void) handleDidReceiveRemoteNotification: (NSDictionary *)  userInfo

Provided by category MSIAppContext(Delegate).

◆ handleDidReceiveRemoteNotificationForNK:()

- (void) handleDidReceiveRemoteNotificationForNK: (NSDictionary *)  userInfo

Provided by category MSIAppContext(Delegate).

◆ handleDidRegisterForRemoteNotificationsWithDeviceToken:()

- (void) handleDidRegisterForRemoteNotificationsWithDeviceToken: (NSData *)  deviceToken

Provided by category MSIAppContext(Delegate).

◆ handleHttp:()

- (void) handleHttp: (NSURL *)  url

◆ handleMailto:()

- (void) handleMailto: (NSURL *)  url

◆ hideFloatingView()

- (void) hideFloatingView

◆ hideLoadingIndicatorOnView:()

- (void) hideLoadingIndicatorOnView: (UIView *)  view

◆ isMSTRConfigID:excludeCurrent:()

- (BOOL) isMSTRConfigID: (NSString *)  configID
excludeCurrent: (BOOL excludeCurrent 

Provided by category MSIAppContext(Delegate).

◆ isNewsstandEnabled()

- (BOOL) isNewsstandEnabled

◆ logout()

- (void) logout

◆ mDSSWCManager()

- (DSSWCManager*) mDSSWCManager

◆ mMSTRBackgroundTransferMgr()

- (MSMBackgroundTransferManager*) mMSTRBackgroundTransferMgr

◆ needsliveConfigFetch()

- (BOOL) needsliveConfigFetch

Provided by category MSIAppContext(Delegate).

◆ networkIsReachable()

- (BOOL) networkIsReachable

◆ numberAndDateLocale()

- (NSLocale*) numberAndDateLocale

◆ prepareImageCache()

- (void) prepareImageCache

◆ prepareImageCache:()

- (void) prepareImageCache: (bool)  asynch

◆ reconcile()

- (void) reconcile

Default suppress network error alerts

Provided by category MSIAppContext(Reconcile).

◆ reconcile:()

- (void) reconcile: (NSInteger)  scope

Provided by category MSIAppContext(Reconcile).

◆ reconcile:suppressNetworkErrorAlerts:()

- (void) reconcile: (NSInteger)  scope
suppressNetworkErrorAlerts: (BOOL suppressNetworkErrorAlerts 

Provided by category MSIAppContext(Reconcile).

◆ reconcileNotificationSubscription:()

- (void) reconcileNotificationSubscription: (NSString *)  subscriptionID

Provided by category MSIAppContext(Reconcile).

◆ reconcileNotificationSubscription:suppressNetworkErrorAlerts:()

- (void) reconcileNotificationSubscription: (NSString *)  subscriptionID
suppressNetworkErrorAlerts: (BOOL suppressNetworkErrorAlerts 

Provided by category MSIAppContext(Reconcile).

◆ reconcileProject:()

- (void) reconcileProject: (MSIProjectConfiguration *)  project

Provided by category MSIAppContext(Reconcile).

◆ reconcileProject:scope:()

- (void) reconcileProject: (MSIProjectConfiguration *)  project
scope: (NSInteger)  scope 

Provided by category MSIAppContext(Reconcile).

◆ reconcileProject:scope:suppressNetworkErrorAlerts:()

- (void) reconcileProject: (MSIProjectConfiguration *)  project
scope: (NSInteger)  scope
suppressNetworkErrorAlerts: (BOOL suppressNetworkErrorAlerts 

Provided by category MSIAppContext(Reconcile).

◆ reconcileProject:suppressNetworkErrorAlerts:()

- (void) reconcileProject: (MSIProjectConfiguration *)  project
suppressNetworkErrorAlerts: (BOOL suppressNetworkErrorAlerts 

Provided by category MSIAppContext(Reconcile).

◆ reconcileReport:report:()

- (void) reconcileReport: (MSIProjectConfiguration *)  project
report: (MSIReportDisplayInfo *)  report 

Provided by category MSIAppContext(Reconcile).

◆ reconcileReport:report:suppressNetworkErrorAlerts:()

- (void) reconcileReport: (MSIProjectConfiguration *)  project
report: (MSIReportDisplayInfo *)  report
suppressNetworkErrorAlerts: (BOOL suppressNetworkErrorAlerts 

Provided by category MSIAppContext(Reconcile).

◆ reconcileWithDoesSuppressNetworkErrorAlert:()

- (void) reconcileWithDoesSuppressNetworkErrorAlert: (BOOL suppressNetworkErrorAlerts

Provided by category MSIAppContext(Reconcile).

◆ registerForNotificationWithAPN()

- (void) registerForNotificationWithAPN

◆ removeAllModalViewControllers:()

- (void) removeAllModalViewControllers: (BOOL forceNotAnimate

◆ removeDeviceTokenforProject:()

- (void) removeDeviceTokenforProject: (MSIProjectConfiguration *)  projectConfig

◆ removeReconcileListener()

- (void) removeReconcileListener

Provided by category MSIAppContext(Reconcile).

◆ setNumberAndDateLocaleId:()

- (void) setNumberAndDateLocaleId: (NSString *)  lId

◆ setReconcileListener:withShakeEnabled:()

- (void) setReconcileListener: (id< ReconcileListener >)  _reconcileListener
withShakeEnabled: (BOOL shakeEnabled 

Provided by category MSIAppContext(Reconcile).

◆ setupPeriodicConfigurationAutoupdateCheck()

- (void) setupPeriodicConfigurationAutoupdateCheck

◆ setupPeriodicReconcile()

- (void) setupPeriodicReconcile

Provided by category MSIAppContext(Reconcile).

◆ showOfflineBanner()

- (void) showOfflineBanner

◆ startConfigurationUpdate()

- (void) startConfigurationUpdate

◆ startStandAloneService:()

- (void) startStandAloneService: (id< Service >)  service

◆ unRegisterForNotificationWithAPN()

- (void) unRegisterForNotificationWithAPN

◆ updateDeferredTaskAfterProjectUpdated()

- (void) updateDeferredTaskAfterProjectUpdated

Update deferred tasks after project updated.

◆ updateExistingPreferences()

- (BOOL) updateExistingPreferences

Provided by category MSIAppContext(Delegate).

◆ useDefaultPreferences()

- (BOOL) useDefaultPreferences

Provided by category MSIAppContext(Delegate).

Property Documentation

◆ bgTask

- (UIBackgroundTaskIdentifier) bgTask
readwriteatomicassign

◆ compatibilityErrorHandled

- (BOOL) compatibilityErrorHandled
readwriteatomic

◆ customizedNavigationController

- (UINavigationController*) customizedNavigationController
readwriteatomicstrong

◆ isLaunchedByNewsstandPush

- (BOOL) isLaunchedByNewsstandPush
readwriteatomic

◆ isRunningTasks

- (BOOL) isRunningTasks
readwriteatomic

◆ mDSSWCManager

- (DSSWCManager*) mDSSWCManager
readwritenonatomicstrong

◆ mMSTRBackgroundTransferMgr

- (MSMBackgroundTransferManager*) mMSTRBackgroundTransferMgr
readwritenonatomicstrong

◆ mNewsstandDownloadMgr

- (NewsstandDownloadManager*) mNewsstandDownloadMgr
readwritenonatomicstrong

◆ notificationInfoDictionary

- (NSDictionary*) notificationInfoDictionary
readwritenonatomicstrong

◆ PNListener

- (id<PushNotificationListener>) PNListener
readwritenonatomicweak

◆ reconcileInitiatedBySilentNotification

- (BOOL) reconcileInitiatedBySilentNotification
readwriteatomic

◆ showMobileLoginPromptAutomatically

- (BOOL) showMobileLoginPromptAutomatically
readwritenonatomicassign

◆ softwareEncryptionEnabled

- (BOOL) softwareEncryptionEnabled
readwriteatomic

◆ unreconciledProjects

- (NSArray*) unreconciledProjects
readnonatomicassign