| | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.PleaseVerifyTheFingerprint)); |
| | | }; |
| | | //加载UI页面 |
| | | LoadGesturePage("7", fingerAction); |
| | | LoadGesturePage("7", fingerAction, null); |
| | | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.PleaseVerifyTheFingerprint)); |
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = (sender1, e) => |
| | |
| | | /// <summary> |
| | | /// 加载指纹验证界面 |
| | | /// </summary> |
| | | public void LoadGesturePage(string optionType, Action fingerAction) |
| | | /// <param name="optionType"></param> |
| | | /// <param name="fingerAction"></param> |
| | | /// <param name="successAction"></param> |
| | | public void LoadGesturePage(string optionType, Action fingerAction, Action successAction) |
| | | { |
| | | var bodyView = new FrameLayout() |
| | | { |
| | |
| | | { |
| | | ///将验证指纹的页面移除 |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | Action action = () => |
| | | { |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | //Action action = () => |
| | | //{ |
| | | // UserInfo.Current.unlockTime = DateTime.Now; |
| | | //}; |
| | | //if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | //{ |
| | | // var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(optionType); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | //} |
| | | //else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | //{ |
| | | // var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(optionType); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | //} |
| | | |
| | | if (successAction == null) |
| | | { |
| | | Action action = () => |
| | | { |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | GotogoToVerifyPasswordPage(optionType, action); |
| | | } |
| | | else |
| | | { |
| | | GotogoToVerifyPasswordPage(optionType, successAction); |
| | | } |
| | | }; |
| | | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.VerifyFaceID)); |
| | | }; |
| | | //加载UI页面 |
| | | LoadFaceIDGesturePage("7", faceIDAction); |
| | | LoadFaceIDGesturePage("7", faceIDAction, null); |
| | | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.VerifyFaceID)); |
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = (sender1, e) => |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载面容ID验证界面 |
| | | /// 加载面容ID验证界面 |
| | | /// </summary> |
| | | public void LoadFaceIDGesturePage(string optionType, Action faceIDAction) |
| | | /// <param name="optionType"></param> |
| | | /// <param name="faceIDAction"></param> |
| | | /// <param name="successAction">指定成功的事件回调</param> |
| | | public void LoadFaceIDGesturePage(string optionType, Action faceIDAction, Action successAction) |
| | | { |
| | | var bodyView = new FrameLayout() |
| | | { |
| | |
| | | { |
| | | ///将验证面容ID的页面移除 |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | Action action = () => |
| | | |
| | | if (successAction == null) |
| | | { |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | Action action = () => |
| | | { |
| | | UserInfo.Current.unlockTime = DateTime.Now; |
| | | }; |
| | | GotogoToVerifyPasswordPage(optionType, action); |
| | | } |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | else |
| | | { |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, action); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | GotogoToVerifyPasswordPage(optionType, successAction); |
| | | } |
| | | |
| | | }; |
| | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 跳转手势或者密码验证界面 |
| | | /// </summary> |
| | | /// <param name="optionType">1:设置密码;2:验证密码;3:关闭密码;4:关闭解锁设置;5:指纹ID开关;6:面容ID开关;7:解锁验证</param> |
| | | /// <param name="successAction"></param> |
| | | void GotogoToVerifyPasswordPage(string optionType, Action successAction) |
| | | { |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | var page = new AppUnlockPasswordPage(UserInfo.Current.appUnlockPasswrod, successAction); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else if (UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | var page = new AppUnlockGesturePage(UserInfo.Current.appUnlockPasswrod, successAction); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(optionType); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | } |
| | | } |
| | | } |