How to calculate the calories of an activity with api when it is going on?

As the question.

var activityInfo = Activity.getActivityInfo();
var activityMonitorInfo = ActivityMonitor.getInfo();

getActivityInfo() as Info or Null

Get the current Activity Info.

Returns:

  • Info  

    The current Activity Info or null if there is no current activity.

Since:

API Level 1.0.0

getInfo() as Info

Get the current ActivityMonitor.Info

Returns:

  • Info  

    An Info object with the current information.

Since:

API Level 1.0.0

 Neither of the returned objects contains what I want. Is then any idea to get the calories expenditure when an activity is running on