Skip to content

Instantly share code, notes, and snippets.

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