forked from organicmaps/organicmaps
[iOS] Fixed missing statistics
https://jira.mail.ru/browse/MAPSME-12546
This commit is contained in:
parent
cabeeba8c0
commit
b17e4216f4
2 changed files with 8 additions and 2 deletions
|
@ -45,15 +45,16 @@ extension FirstLaunchPresenter: IFirstLaunchPresenter {
|
|||
case .nothing:
|
||||
break
|
||||
}
|
||||
Statistics.logEvent(kStatOnboardingScreenShow, withParameters: [kStatType: config.statType])
|
||||
}
|
||||
|
||||
func onNext() {
|
||||
router.onNext()
|
||||
Statistics.logEvent(kStatOnboardingScreenShow, withParameters: [kStatType: config.statType])
|
||||
Statistics.logEvent(kStatOnboardingScreenAccept, withParameters: [kStatType: config.statType])
|
||||
}
|
||||
|
||||
func onClose() {
|
||||
router.onClose()
|
||||
Statistics.logEvent(kStatOnboardingScreenAccept, withParameters: [kStatType: config.statType])
|
||||
Statistics.logEvent(kStatOnboardingScreenDecline, withParameters: [kStatType: config.statType])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,11 @@ class TermsOfUseViewController: MWMViewController {
|
|||
presenter?.configure()
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
presenter?.onAppear()
|
||||
}
|
||||
|
||||
@IBAction func onCheck(_ sender: Checkmark) {
|
||||
if (privacyPolicyCheck.isChecked && termsOfUseCheck.isChecked){
|
||||
presenter?.onNext()
|
||||
|
|
Loading…
Add table
Reference in a new issue