예제 #1
0
        /// <summary>
        /// Execute the callback function in the webpage, passing the current location.
        /// </summary>
        /// <param name="scanCode">Code or text parsed from barcode</param>
        public void OpenJSFunctionLocation()
        {
            string jsString = QRLocation.GenerateJavascriptString();

            try
            {
                WebPageWebView.Eval(jsString);
            }
            catch (Exception)
            {
                // BarcodeScanner not available
            }
        }
예제 #2
0
파일: App.cs 프로젝트: Adrianotiger/qr2web
        /// <summary>
        /// Execute the callback function in the webpage, passing the current location.
        /// </summary>
        /// <param name="scanCode">Code or text parsed from barcode</param>
        public void OpenJSFunctionLocation()
        {
            string jsString = QRLocation.GenerateJavascriptString();

            QRPage.InjectJS(jsString);
        }