public static Event createLabel()

in src/main/java/com/microsoft/appcenter/appium/Event.java [28:38]


    public static Event createLabel(String id, String testName, String className, int run, String label, String screenshotPath, int screenshotOrientation, boolean screenshotRotated) {
        if (null == label || label.length() < 1 || label.length() > MAX_LABEL_SIZE) {
            throw new IllegalArgumentException("Labels must be non-empty strings of length <= " + MAX_LABEL_SIZE);
        }
        Event event = new Event(id, EventType.label, testName, className, run);
        event.screenshotPath = screenshotPath;
        event.label = label;
        event.screenshotOrientation = screenshotOrientation;
        event.screenshotRotated = screenshotRotated;
        return event;
    }