Kotlin Multiplatform ViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import common | |
class ViewController: UIViewController { | |
let anatlyicsManager = IosAnalyticsManager() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Report page is viewed | |
anatlyicsManager.report(event: ViewEvent.init(pageName: "Main Page")) | |
} | |
@IBAction func redButtonClicked(_ sender: Any) { | |
anatlyicsManager.report(event: ButtonClickEvent.init(buttonName: "Red")) | |
} | |
@IBAction func greenButtonClicked(_ sender: Any) { | |
anatlyicsManager.report(event: ButtonClickEvent.init(buttonName: "Green")) | |
} | |
@IBAction func blueButtonClicked(_ sender: Any) { | |
anatlyicsManager.report(event: ButtonClickEvent.init(buttonName: "Blue")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment