コード例 #1
0
ファイル: App.cs プロジェクト: voodoothailand/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();

            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);
        }