This is the mass market application of PrimeSense's Time-of-flight sensor. They were first known by the Structured-light sensor used in the Xbox Kinect camera, but were later bought by Apple and used for Face ID. ToF is a more difficult technology than Structured-light, but the spatial and temporal resolutions are much higher. Rotating Lidar is also ToF, with lower spatial and temporal resolution.
https://en.wikipedia.org/wiki/PrimeSense https://en.wikipedia.org/wiki/Time-of-flight_camera https://en.wikipedia.org/wiki/Structured-light_3D_scanner