Ejemplo n.º 1
0
        internal PluginBarcodeScanner(string serviceName, PluginBarcodeScannerConnection connection, Context context)
        {
            this.serviceName = serviceName;
            this.connection  = connection;
            this.context     = context;

            if (PluginManagerBase.CommonContext == null)
            {
                PluginManagerBase.CommonContext = context;
            }


            //SetCallback();

            receiver = new PluginBarcodeScannerBroadcastReceiver(this);

            var filter = new IntentFilter();

            filter.AddAction("com.cleverence.plugins.barcodeScannerScan");

            context.RegisterReceiver(receiver, filter);
        }
 private PluginBarcodeMobileComputer(string serviceName, PluginBarcodeScannerConnection connection, Context context)
 {
     this.serviceName = serviceName;
     this.connection  = connection;
     this.context     = context;
 }