Show activity stats for developed app

I developed a small app to record racket activities and I would like to show some stats when it finishes, just like the native garmin forerunner running app does: it displays distance, time, calories, etc etc.

what's the best way to replicate that? is there any native way the SDK provides that functionality or do I need to manually create a activity summary view on my app after the user selects to leave, but actually before leaving?