This is an example app that demonstrates how to capture and process data from a Time of Flight camera, specifically the front-facing "3D Camera" on the Samsung S10 5G.
Clone and run on an Samsung S10 5G device from Android studio (3.5.1 at the time of publishing).
There is also an associated post here.