Last active
May 18, 2020 14:20
-
-
Save Kpeved/57168e67660770f01d214b64350ea12e to your computer and use it in GitHub Desktop.
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
object AnalyticsConstants { | |
object Events { | |
object FirstLaunch { | |
const val EVENT = "first_launch" | |
} | |
object SessionStart { | |
const val EVENT = "session_start" | |
} | |
object Navigated { // Each event is having its own class | |
const val EVENT = "navigated" // this is event name. | |
object Params { // this is an object which contains possible parameters. Note: it's not a final list of possible parameters, | |
// some parameters can be re-used from other events. The point is to keep all possible constants in this class | |
const val FROM = "from" | |
const val TO = "to" | |
} | |
object NavigationSources { // this are possible values of event parameters from and to. | |
const val HOME = "home" | |
const val DASHBOARD = "dashboard" | |
const val NOTIFICATIONS = "notifications" | |
} | |
} | |
object SendClicked { | |
const val EVENT = "send_clicked" | |
object Params { | |
const val TIME_BETWEEN_CLICKS = "time_between_clicks" | |
} | |
} | |
... | |
} | |
object UserProperties{ | |
const val NOTIFICATION_STATE = "notification_state" //here we have a list of user properties | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment