Watch swimming app

Hi guys. I'm new to Garmin devices and just install Connect IQ.

I would like to build watch workout app for swimmers.
Key features:

  • start workout
  • display timer, distance, lap count, heart rate during workout
  • save workout

And what is most important. I need to collect all possible sensors data (gyro, accelerometer).
Then when workout is saved, I need to send this data to phone.
What is the best way to achieve this ?

Should I manually listen for all sensors raw data, collect them in array and then transfer to Phone ?
Or there is some ready solutions for that ?
I can see Garmin has something like FIT file.
How does it work ? Is that possible to ask device to collect everything to FIT file, and then just transfer FIT file to Phone ?