Is there a way to detect if onStart is for the background, the glance or the main view process?

I'm asking because since onBackgroundData is ran between the onStart and getGlanceView/getInitialView, I would like to use onStart to prefetch data from storage before onBackgroundData is ran but for efficiency, I don't need to do that when it's from the background process, however I can't find a way to detect if onStart is for the background, the glance or the main view process. 

Thanks.