void ScanComplete(int idx) { ScanNormal(); #if UNITY_EDITOR LoadItem(63); #else EasyCodeScanner.launchScanner(true, "Scanning...", -1, true); #endif }
public void ScanWristBandID() { #if UNITY_IPHONE && !UNITY_EDITOR EasyCodeScanner.Initialize(); EasyCodeScanner.OnScannerMessage += OnScanSuccess; EasyCodeScanner.launchScanner(false, "FRAXINUS", -1, false); #endif #if UNITY_EDITOR OnScanSuccess("20190326b"); #endif }
public void launchScanner() { if (confText[11] == "locked") { string[] aux = new string[2] { "Visit moveballgame.wordpress.com and scan the QR code", "Visita moveballgame.wordpress.com y escanea el QR" }; EasyCodeScanner.launchScanner(true, aux[langind], -1, true); } else { SceneManager.LoadScene("Play3"); } }
void Start() { // Initialize EasyCodeScanner EasyCodeScanner.Initialize(); //Register on Actions EasyCodeScanner.OnScannerMessage += onScannerMessage; EasyCodeScanner.OnScannerEvent += onScannerEvent; EasyCodeScanner.OnDecoderMessage += onDecoderMessage; EasyCodeScanner.launchScanner(true, "", -1, true); //Screen.orientation = ScreenOrientation.LandscapeLeft; }
void Start() { dataStr = ""; // Initialize EasyCodeScanner EasyCodeScanner.Initialize(); //Register on Actions EasyCodeScanner.OnScannerMessage += onScannerMessage; EasyCodeScanner.OnScannerEvent += onScannerEvent; EasyCodeScanner.OnDecoderMessage += onDecoderMessage; //Screen.orientation = ScreenOrientation.LandscapeLeft; EasyCodeScanner.launchScanner(true, "Scanning...", 64, false); }
void OnGUI() { //--- To be replaced by your controls, just to showcase --- if (GUI.Button(new Rect(10, 125, 300, 100), "Launch scanner")) { //for code list, see : http://zbar.sourceforge.net/api/zbar_8h.html#f7818ad6458f9f40362eecda97acdcb0 // and zbar.h /* * typedef enum zbar_symbol_type_e { * ZBAR_NONE = 0, < no symbol decoded * ZBAR_PARTIAL = 1, < intermediate status * ZBAR_EAN8 = 8, < EAN-8 / * ZBAR_UPCE = 9, < UPC-E * ZBAR_ISBN10 = 10, < ISBN-10 (from EAN-13). @since 0.4 * ZBAR_UPCA = 12, < UPC-A * ZBAR_EAN13 = 13, < EAN-13 * ZBAR_ISBN13 = 14, < ISBN-13 (from EAN-13). @since 0.4 * ZBAR_I25 = 25, < Interleaved 2 of 5. @since 0.4 * ZBAR_CODE39 = 39, < Code 39. @since 0.4 * ZBAR_PDF417 = 57, < PDF417. @since 0.6 * ZBAR_QRCODE = 64, < QR Code. @since 0.10 * ZBAR_CODE128 = 128, < Code 128 * ZBAR_SYMBOL = 0x00ff, < mask for base symbol type * ZBAR_ADDON2 = 0x0200, < 2-digit add-on flag * ZBAR_ADDON5 = 0x0500, < 5-digit add-on flag * ZBAR_ADDON = 0x0700, < add-on flag mask * } zbar_symbol_type_t; */ //for instance, only QRCodes //launchScanner( true, "Scanning...", 64, true); //all codes at the same time : value = -1 EasyCodeScanner.launchScanner(true, "Scanning...", -1, true); } dataStr = GUI.TextArea(new Rect(10, 275, 300, 100), dataStr); //--- }
public void Scan() { //OnQRCodeScanSuccess("123451234a"); EasyCodeScanner.launchScanner(false, "FRAXINUS", -1, false); }
private void DelayLaunchScanner() { EasyCodeScanner.launchScanner(true, string.Empty, -1, true); }
public void Scan() { EasyCodeScanner.launchScanner(true, "FEClub", -1, true); }