Ejemplo n.º 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
            }
        }
Ejemplo n.º 2
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();

            QRPage.InjectJS(jsString);
        }