Created
March 23, 2018 18:39
-
-
Save adrianhall/975f2513997ef0d485a2a38ad0d92b66 to your computer and use it in GitHub Desktop.
Record a custom event with Amazon Pinpoint
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
fab.setOnClickListener { view -> | |
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) | |
.setAction("Action", null).show() | |
pinpointManager?.let { | |
val event = it.analyticsClient.createEvent("click-fab") | |
it.analyticsClient.recordEvent(event) | |
it.analyticsClient.submitEvents() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment