Global mail listener, and getting data from it

Hello users of Garmin forum!

I am making a companion app for Garmin smartwatches, which will just get various data from the phone and display it on the screen. And my app has different views, which also display their portions of data. But I ran into a problem: I need to copy-paste code for the handler to every view, so they get their data from the phone, and I find it pretty non-efficient. So here is the question: how can I make a global listener for mail(as I know mail in Garmin Connect IQ is basically data exchange between the phone and a watch)?