All-in-One van der Waals Material for Light Detection, Guiding and Modulation