The laptop's USB type C ver3.1 display port is connected to the iPhone's lightning interface

When connecting the USB type C ver3.1 display port output of a laptop to the lightning interface of an iPhone, how could I use the SW API on the iPhone to capture the image output of the laptop screen?