The time in air is determined by the initial vertical velocity. This is because, the steeper the launch angle the larger the vertical velocity component, that causes the launch angle to increase the time in air.
I did Physics a while ago but I believe my answer is correct. (:
Hope this helps! (: