This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2425 from vector-im/feature/analytics
Feature/analytics
- Loading branch information
Showing
10 changed files
with
259 additions
and
119 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package im.vector.analytics | ||
|
||
/** | ||
* Defines the available tracking methods. | ||
*/ | ||
interface Analytics { | ||
|
||
/** | ||
* Method to track a screen in the analytic solution | ||
* @param screen the path of the screen | ||
* @param title the optional title of the screen | ||
*/ | ||
fun trackScreen(screen: String, title: String? = null) | ||
|
||
/** | ||
* Method to track an event | ||
* @param event the event to track | ||
*/ | ||
fun trackEvent(event: Event) | ||
|
||
/** | ||
* Method to add custom variable to the session | ||
* @param index the index of the variable | ||
* @param name the name of the variable | ||
* @param value the value of the variable | ||
*/ | ||
fun visitVariable(index: Int, name: String, value: String) | ||
|
||
/** | ||
* Method to dispatch immediately the previously not dispatched metrics | ||
*/ | ||
fun forceDispatch() | ||
|
||
} |
Oops, something went wrong.