class Characteristics {

    public boolean isLegacyDevice() {
        int hardwareLevel = cameraCharacteristics
                .get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);

        return hardwareLevel == CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY;
    }

    public  Characteristics(CameraCharacteristics cameraCharacteristics);

}