bitwarden-android/src/iOS.Autofill/LockPasswordViewController.cs
2018-09-20 22:53:23 -04:00

27 lines
892 B
C#

using System;
using UIKit;
namespace Bit.iOS.Autofill
{
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
{
public LockPasswordViewController(IntPtr handle) : base(handle)
{ }
public CredentialProviderViewController CPViewController { get; set; }
public override UINavigationItem BaseNavItem => NavItem;
public override UIBarButtonItem BaseCancelButton => CancelButton;
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
public override Action Success => () => CPViewController.DismissLockAndContinue();
partial void SubmitButton_Activated(UIBarButtonItem sender)
{
CheckPassword();
}
partial void CancelButton_Activated(UIBarButtonItem sender)
{
CPViewController.CompleteRequest();
}
}
}