/*public override BluetoothInterface Bluetooth * { * get * { * if (bluetooth == null) * { * bluetooth = new BluetoothInterface(); * } * * return bluetooth; * } * }*/ public void Dispose() { if (scanner != null) { scanner.Dispose(); scanner = null; } //if (bluetooth != null) //{ // bluetooth.Dispose(); // bluetooth = null; //} DisconnectPlugin(); }
protected override void Dispose(bool disposing) { scanner = null; base.Dispose(disposing); }
public PluginBarcodeScannerBroadcastReceiver(PluginBarcodeScanner scanner) { this.scanner = scanner; }