Add AnalyticsScreenTimer and track more screens.

Update Analytics with new methods in MXAnalyticsDelegate.
This commit is contained in:
Doug
2021-12-02 14:25:45 +00:00
parent 418865a388
commit 315f5a9cc4
42 changed files with 513 additions and 42 deletions
@@ -283,6 +283,8 @@ TableViewSectionsDelegate>
@property (nonatomic) BOOL isPreparingIdentityService;
@property (nonatomic, strong) ServiceTermsModalCoordinatorBridgePresenter *serviceTermsModalCoordinatorBridgePresenter;
@property (nonatomic) AnalyticsScreenTimer *screenTimer;
@end
@implementation SettingsViewController
@@ -315,6 +317,8 @@ TableViewSectionsDelegate>
isSavingInProgress = NO;
isResetPwdInProgress = NO;
is3PIDBindingInProgress = NO;
self.screenTimer = [[AnalyticsScreenTimer alloc] initWithScreen:AnalyticsScreenSettings];
}
- (void)updateSections
@@ -805,6 +809,8 @@ TableViewSectionsDelegate>
[self releasePushedViewController];
[self.settingsDiscoveryTableViewSection reload];
[self.screenTimer start];
}
- (void)viewWillDisappear:(BOOL)animated
@@ -848,6 +854,12 @@ TableViewSectionsDelegate>
}
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[self.screenTimer stop];
}
#pragma mark - Internal methods
- (void)pushViewController:(UIViewController*)viewController