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 b7a4e5c0d3
commit 47348b7f34
42 changed files with 513 additions and 42 deletions
@@ -68,6 +68,8 @@ final class ShowDirectoryViewController: UIViewController {
}()
private var sections: [ShowDirectorySection] = []
private let screenTimer = AnalyticsScreenTimer(screen: .roomDirectory)
// MARK: - Setup
@@ -104,10 +106,17 @@ final class ShowDirectoryViewController: UIViewController {
self.keyboardAvoider?.startAvoiding()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
screenTimer.start()
}
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
self.keyboardAvoider?.stopAvoiding()
screenTimer.stop()
}
override var preferredStatusBarStyle: UIStatusBarStyle {