Skip to content

Instantly share code, notes, and snippets.

@manijshrestha
Last active October 14, 2018 20:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save manijshrestha/c8dec1c88b1025b1f4e75d2911a6f03c to your computer and use it in GitHub Desktop.
Kotlin Multiplatform ViewEvent
package com.manijshrestha.kotlinmplogging.analytics
data class ViewEvent(private val pageName: String) : Event {
override fun eventName() = "Page_Viewed"
override fun eventProperties() = mapOf(
"page_name" to pageName
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment