Skip to content

Instantly share code, notes, and snippets.

@manijshrestha

manijshrestha/ButtonClickEvent.kt Secret

Last active Oct 14, 2018
Embed
What would you like to do?
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