Mobile API Reference  MicroStrategy 2019
IViewer.h
Go to the documentation of this file.
1 //
2 // IViewer.h
3 // IPadDashboardViewer
4 //
5 // Created by bhuang on 3/23/10.
6 // Copyright 2010 __MyCompanyName__. All rights reserved.
7 //
8 
9 #import "Enums.h"
10 
11 @class DataModel;
12 @class Commander;
13 
14 @protocol IViewer
15 
16 - (void)detachViewer;
17 
18 @optional
19 - (void)handleEvent:(NSString*)ipEventName;
20 - (CGFloat)getMeasuredWidth;
21 - (CGFloat)getMeasuredHeight;
23 - (void)measure;
24 
28 - (NSString*)getViewerID;
29 
33 - (NSData*)getViewerStatus;
34 
35 @end
36 
37 
38 @class ViewerDataModel;
39 @protocol MSICommanderDelegate;
40 @protocol IWidgetProtocol <IViewer>
41 
42 
48 - (id)initViewer:(ViewerDataModel*)_viewerDataModel withCommanderDelegate:(id<MSICommanderDelegate>)_commander withProps:(NSString*)_props;
49 
54 + (MSTROrientation)supportedOrientation;
55 
59 - (void) addViewToBaseView:(UIView*)view;
60 
64 - (void)displayError:(NSString*)errorMessage;
65 
69 - (BOOL)supportsFitToScreen;
70 
71 @end
72 
73 @protocol WidgetGridSwitchProtocol<NSObject, NSCoding> //this function only available when you use the widget to run a report
77 - (void)quickSwitchToGrid;
81 - (void)quickSwitchToWidget;
82 
87 - (void)cleanViews;
91 - (void)recreateWidget;
92 
93 /*
94  call rgus method when controller will reuse widget; if return YES, this widget could be reuse, otherwise not.
95  */
97 
98 //Used if the widget needs second dataset as the data source, else no need to override
99 - (void)requestSecondaryDataModel:(NSString*)nodeKey;
100 
101 @end
102 
Definition: IViewer.h:73
void evaluateConditionalTransactionThreshold()
signed char BOOL
Definition: PDCwtypes.h:101
CGFloat getMeasuredWidth()
Definition: IViewer.h:14
enum _MSTROrientation MSTROrientation
Definition: ViewerDataModel.h:19
NSData * getViewerStatus()
void detachViewer()
NSString * getViewerID()
CGFloat getMeasuredHeight()
void measure()
Definition: Commander.h:156