-
Notifications
You must be signed in to change notification settings - Fork 244
/
CountlyViewData.h
78 lines (65 loc) · 2.08 KB
/
CountlyViewData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// CountlyViewData.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
@interface CountlyViewData : NSObject
/**
* Unique Id of the view.
* @discussion Set a unique id when starting a view.
*/
@property (nonatomic) NSString* viewID;
/**
* Name of the view.
* @discussion set the name of view when starting a view.
*/
@property (nonatomic) NSString* viewName;
/**
* Starting time of view.
* @discussion set the start time when starting a view.
*/
@property (nonatomic) NSTimeInterval viewStartTime;
/**
* Is this view is auto stoppable.
* @discussion If set then this view will automatically stopped when new view is started.
*/
@property (nonatomic) BOOL isAutoStoppedView;
/**
* Is this view is automaticaly stopped.
* @discussion It sets true when app goes to backround, and view will start again on the basis of that flag when app goes to foreground.
*/
@property (nonatomic) BOOL willStartAgain;
/**
* Segmentation for a view.
* @discussion You can set this segmentation after the view has started using the "addSegmentationToViewWithID:" or "addSegmentationToViewWithID" methods of view interface.
*/
@property (nonatomic) NSMutableDictionary* segmentation;
/**
* Segmentation of start view .
* @discussion This segmentation will store to send again when view is start again when app goes to foreground
*/
@property (nonatomic) NSMutableDictionary* startSegmentation;
/**
* Initialize view data
* @discussion If set then this view will automatically stopped when new view is started.
* @param viewID unique id of the view.
* @param viewName view name
*/
- (instancetype)initWithID:(NSString *)viewID viewName:(NSString *)viewName;
/**
* Duration of the view
* @discussion it returns the duration of view in foreground after view started.
*/
- (NSInteger)duration;
/**
* Pause view
* @discussion When the view is paused then that time will not consider when calculating the duration
*/
- (void)pauseView;
/**
* Resume view
* @discussion View time will resume
*/
- (void)resumeView;
@end