mirror of
https://github.com/ProtonMail/protoncore_android.git
synced 2026-05-15 09:50:41 +00:00
feat(auth-presentation): Add product metrics for "Credential-less Add Account" screen.
This commit is contained in:
+22
@@ -47,9 +47,31 @@ import me.proton.core.presentation.utils.getUserMessage
|
||||
import me.proton.core.presentation.utils.onClick
|
||||
import me.proton.core.presentation.utils.openBrowserLink
|
||||
import me.proton.core.presentation.utils.viewBinding
|
||||
import me.proton.core.telemetry.domain.entity.TelemetryPriority
|
||||
import me.proton.core.telemetry.presentation.annotation.ProductMetrics
|
||||
import me.proton.core.telemetry.presentation.annotation.ScreenClosed
|
||||
import me.proton.core.telemetry.presentation.annotation.ScreenDisplayed
|
||||
import me.proton.core.telemetry.presentation.annotation.ViewClicked
|
||||
import javax.inject.Inject
|
||||
|
||||
@AndroidEntryPoint
|
||||
@ProductMetrics(
|
||||
group = "account.any.signup",
|
||||
flow = "mobile_signup_full"
|
||||
)
|
||||
@ScreenDisplayed(
|
||||
event = "fe.add_account.displayed",
|
||||
priority = TelemetryPriority.Immediate
|
||||
)
|
||||
@ScreenClosed(
|
||||
event = "user.add_account.closed",
|
||||
priority = TelemetryPriority.Immediate
|
||||
)
|
||||
@ViewClicked(
|
||||
event = "user.add_account.clicked",
|
||||
viewIds = ["sign_in_guest", "sign_in", "sign_up"],
|
||||
priority = TelemetryPriority.Immediate
|
||||
)
|
||||
internal class CredentialLessWelcomeFragment : ProtonFragment(R.layout.fragment_credential_less_welcome) {
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user