Activity type and GPS status in datafields

Hi guys,

I am writing a datafield and I could not find info how to get either one or both of the following data:

- Whether GPS is enabled/disabled in the activity.

I could find the Toybox::Position and Toybox::Activity::Info classes but none of them has info if the GPS is disabled or not.

- The Activity type where the datafield is running. If the GPS status above is not available I would like to write a condition based on the type of the activity and only run that piece of code in case of particular activity types. For example, no location info is needed for Yoga or Strength activities.

I sought for it in the developer docs, tried to search here and in open-source codes but has had no luck so far.

Any idea would be appreciated.

Thank you.