示例#1
0
        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)");
        }
示例#2
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);
            }
        }
示例#3
0
        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)");
        }
示例#4
0
 private void PasswordAcquiredCallback(WebPasswordDataList list)
 {
 }