1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 08:43:21 +00:00

Instrumented key events in extension

This commit is contained in:
Kyle Spearrin
2016-08-04 00:25:10 -04:00
parent a831c9ac4f
commit 561c972c96
6 changed files with 40 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ namespace Bit.iOS.Extension
{
private IPasswordGenerationService _passwordGenerationService;
private ISettings _settings;
private IGoogleAnalyticsService _googleAnalyticsService;
public PasswordGeneratorViewController(IntPtr handle) : base(handle)
{ }
@@ -44,6 +45,7 @@ namespace Bit.iOS.Extension
{
_passwordGenerationService = Resolver.Resolve<IPasswordGenerationService>();
_settings = Resolver.Resolve<ISettings>();
_googleAnalyticsService = Resolver.Resolve<IGoogleAnalyticsService>();
View.BackgroundColor = new UIColor(red: 0.94f, green: 0.94f, blue: 0.96f, alpha: 1.0f);
@@ -171,6 +173,7 @@ namespace Bit.iOS.Extension
private void GeneratePassword()
{
_googleAnalyticsService.TrackExtensionEvent("GeneratePassword");
PasswordLabel.Text = _passwordGenerationService.GeneratePassword(
length: LengthCell.Value,
uppercase: UppercaseCell.Switch.On,