public static TriggerType getByPosition(int position) {
      if (position < 0 || position >= TriggerType.values().length) {
        return null;
      }
      return TriggerType.values()[position];
    }
An Activity that shows a form UI allowing users to define a custom job.
testapp/src/main/java/com/firebase/jobdispatcher/testapp/JobFormActivity.java