mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
Add tap/click event. Improve Swift/ObjC bridging.
This commit is contained in:
@@ -148,6 +148,15 @@ extension Analytics {
|
||||
client.screen(event)
|
||||
}
|
||||
|
||||
/// Track an element that has been tapped
|
||||
/// - Parameters:
|
||||
/// - tap: The element that was tapped
|
||||
/// - index: The index of the element, if it's in a list of elements
|
||||
func trackTap(_ tap: AnalyticsElement, index: Int?) {
|
||||
let event = AnalyticsEvent.Click(index: index, name: tap.elementName)
|
||||
client.capture(event)
|
||||
}
|
||||
|
||||
/// Track an E2EE error that occurred
|
||||
/// - Parameters:
|
||||
/// - reason: The error that occurred.
|
||||
|
||||
Reference in New Issue
Block a user