package it.integry.barcode_base_android_library.model;

import java.util.ArrayList;
import java.util.List;

public class BarcodeSetting {

    public static final String P_TRIGGER_SCAN_MODE = "TRIG_SCAN_MODE";
    public static final String V_TRIGGER_SCAN_MODE_READ_ON_RELEASE = "readOnRelease";
    public static final String V_TRIGGER_SCAN_MODE_ONE_SHOT = "oneShot";
    public static final String V_TRIGGER_SCAN_MODE_CONTINUOS = "continuous";
    public static final String V_TRIGGER_SCAN_MODE_READ_ON_SECOND_TRIGGER_PRESS = "readOnSecondTriggerPress";
    public static final String P_TRIGGER_SCAN_DELAY = "TRIG_SCAN_DELAY";


    public static CharSequence[] getTriggerScanModes() {
        List<String> keys = new ArrayList<>();
        keys.add(V_TRIGGER_SCAN_MODE_READ_ON_RELEASE);
        keys.add(V_TRIGGER_SCAN_MODE_ONE_SHOT);
//        keys.add(V_TRIGGER_SCAN_MODE_CONTINUOS);
//        keys.add(V_TRIGGER_SCAN_MODE_READ_ON_SECOND_TRIGGER_PRESS);

        return keys.toArray(new String[0]);
    }

}
