public abstract class BarcodeReader
{
    public abstract void SetEnabled(bool enabled);
 
    public void OnScanSuccessful(string barcode)
    { ... }
}