示例#1
0
        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);
            }
        }
示例#2
0
        public void WebPasswordDataListGetItemAtIndex()
        {
            tlog.Debug(tag, $"WebPasswordDataListGetItemAtIndex 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, "Item : " + testingTarget.GetItemAtIndex(0));

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WebPasswordDataListGetItemAtIndex END (OK)");
        }