public void WebPasswordDataListConstructor() { tlog.Debug(tag, $"WebPasswordDataListConstructor START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { var testingTarget = new WebPasswordDataList(webview.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebPasswordDataList>(testingTarget, "Should return WebPasswordDataList instance."); testingTarget.Dispose(); } tlog.Debug(tag, $"WebPasswordDataListConstructor END (OK)"); }
private void OnPasswordDataListAcquired(WebPasswordDataList list) { Log.Info("WebView", $"------------password data list, count: {list.ItemCount}-------"); string[] passwords = new string[list.ItemCount]; for (uint i = 0; i < list.ItemCount; i++) { WebPasswordData data = list.GetItemAtIndex(i); passwords[i] = data.Url; Log.Info("WebView", $"------------password data, Url: {data.Url}-------"); Log.Info("WebView", $"------------password data, FingerprintUsed: {data.FingerprintUsed}-------"); } if (list.ItemCount > 0) { simpleWebView.Context.DeleteFormPasswordDataList(passwords); } }
public void WebPasswordDataListItemCount() { tlog.Debug(tag, $"WebPasswordDataListItemCount START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { webview.LoadUrl(url); var testingTarget = new WebPasswordDataList(webview.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebPasswordDataList>(testingTarget, "Should return WebPasswordDataList instance."); tlog.Error(tag, "ItemCount : " + testingTarget.ItemCount); testingTarget.Dispose(); } tlog.Debug(tag, $"WebPasswordDataListItemCount END (OK)"); }
private void PasswordAcquiredCallback(WebPasswordDataList list) { }