Mobile API Reference  MicroStrategy 2019
MSIImageCache Class Reference

#import <MSIImageCache.h>

Inheritance diagram for MSIImageCache:

Instance Methods

(void) - getImage:callback:project:
 
(void) - getImageForGridCell:callback:project:
 
(void) - getImageWithInfo:callback:project:async:
 
(void) - cancelRequestAndService:callback:
 
(UIImage *) - cacheImageForUrl:callback:project:checkLocalOnly:
 
(void) - clearInMemoryCache
 
(void) - deleteReportImageCaches:
 
(void) - deleteCachesWithSubscriptionId:
 
(void) - deleteDrillImageCaches
 

Class Methods

(MSIImageCache *) + getImageCache
 
(BOOL+ isImageUrlForHighResolution:
 
(NSString *) + hGetCurrentTimeStamp
 

Protected Attributes

NSMutableArray * activeRequests
 
NSMutableDictionary * allRequests
 
NSMutableDictionary * reportToCacheIndexMap
 
NSMutableDictionary * reportToCacheInfoMap
 
NSMutableDictionary * failedRequests
 
NSMutableDictionary * urlToServiceMapActivePool
 
NSMutableDictionary * urlToServiceMapWaitingPool
 
NSMutableDictionary * toBeCncledRequests
 
NSMutableDictionary * urlToImageDict
 
NSMutableDictionary * imageRefCount
 
NSString * mBaseUrl
 
dispatch_queue_t mBackgroudQueue
 

Method Documentation

◆ cacheImageForUrl:callback:project:checkLocalOnly:()

- (UIImage*) cacheImageForUrl: (NSString *)  url
callback: (id)  cback
project: (MSIProjectInfo *)  projectInfo
checkLocalOnly: (BOOL check 

◆ cancelRequestAndService:callback:()

- (void) cancelRequestAndService: (NSString *)  url
callback: (id)  cbk 

◆ clearInMemoryCache()

- (void) clearInMemoryCache

◆ deleteCachesWithSubscriptionId:()

- (void) deleteCachesWithSubscriptionId: (NSString *)  subscriptionId

◆ deleteDrillImageCaches()

- (void) deleteDrillImageCaches

◆ deleteReportImageCaches:()

- (void) deleteReportImageCaches: (ReportInfo *)  report

◆ getImage:callback:project:()

- (void) getImage: (NSString *)  imageUrl
callback: (id< ImageCacheCallback >)  cback
project: (MSIProjectInfo *)  projectInfo 

◆ getImageCache()

+ (MSIImageCache *) getImageCache

◆ getImageForGridCell:callback:project:()

- (void) getImageForGridCell: (NSString *)  imageUrl
callback: (id< ImageCacheCallback >)  cback
project: (MSIProjectInfo *)  projectInfo 

◆ getImageWithInfo:callback:project:async:()

- (void) getImageWithInfo: (ImageInfo *)  imgInfo
callback: (id< ImageCacheCallback >)  cback
project: (MSIProjectInfo *)  projectInfo
async: (BOOL async 

◆ hGetCurrentTimeStamp()

+ (NSString*) hGetCurrentTimeStamp

◆ isImageUrlForHighResolution:()

+ (BOOL) isImageUrlForHighResolution: (NSString *)  url

Member Data Documentation

◆ activeRequests

- (NSMutableArray*) activeRequests
protected

◆ allRequests

- (NSMutableDictionary*) allRequests
protected

◆ failedRequests

- (NSMutableDictionary*) failedRequests
protected

◆ imageRefCount

- (NSMutableDictionary*) imageRefCount
protected

◆ mBackgroudQueue

- (dispatch_queue_t) mBackgroudQueue
protected

◆ mBaseUrl

- (NSString*) mBaseUrl
protected

◆ reportToCacheIndexMap

- (NSMutableDictionary*) reportToCacheIndexMap
protected

◆ reportToCacheInfoMap

- (NSMutableDictionary*) reportToCacheInfoMap
protected

◆ toBeCncledRequests

- (NSMutableDictionary*) toBeCncledRequests
protected

◆ urlToImageDict

- (NSMutableDictionary*) urlToImageDict
protected

◆ urlToServiceMapActivePool

- (NSMutableDictionary*) urlToServiceMapActivePool
protected

◆ urlToServiceMapWaitingPool

- (NSMutableDictionary*) urlToServiceMapWaitingPool
protected