Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Raise an evento from Native Activity to Page

$
0
0

Hi folks.
I've this situation (I think I've already talk with @adamkemp about this type of situation).
In "Android" side, I have a BroadcastReceiver which "Receive" data from an intent and "Raise" an event handler.
In MainActivity I receive this event

            _broadcastReceiver.scanDataReceived += (s, scanData) =>
        {
            // Here I have my data from the intent

        };

Now I would like to pass this data to my "Page" because I would like to fill a label with this data.
Any Suggestions?
I've tried with Messaggingcenter but I think it's not the perfect solution.
In past months I've used (with @adamkemp suggestion), a "PageRenderer" to pass data from an Activity to a Page, but I think there are also more simple
methods to have the same result...

Any suggestions?
Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>