Add new screen, composer event method and ui elements

This commit is contained in:
ismailgulek
2022-02-28 17:46:19 +03:00
parent 835c259610
commit 53588b7910
3 changed files with 24 additions and 3 deletions
@@ -18,15 +18,24 @@ import AnalyticsEvents
/// A tappable UI element that can be tracked in Analytics.
@objc enum AnalyticsUIElement: Int {
case removeMe
case roomThreadListButton
case roomThreadSummaryItem
case threadListThreadItem
case threadListFilterItem
/// The element name reported to the AnalyticsEvent.
var name: AnalyticsEvent.Interaction.Name {
switch self {
// Note: This is a test element that doesn't need to be captured.
// It can be removed when some elements are added that relate to mobile.
case .removeMe:
return .WebRoomSettingsLeaveButton
case .roomThreadListButton:
return .MobileRoomThreadListButton
case .roomThreadSummaryItem:
return .MobileRoomThreadSummaryItem
case .threadListThreadItem:
return .MobileThreadListThreadItem
case .threadListFilterItem:
return .MobileThreadListFilterItem
}
}
}