Hello everyone,
I have a content page _P() contains a switch + label
If the switch is true => I will start an android method using dependency service. This method -lets call it TestA()- is running a Task thread which won't stop until the switch is turn to false.
I did all of this.
What i need is when the method TestA() is running -On myProject.Droid- . It is generating different value -depending on some code-.
how can I send this value to the label in my content page _P() without interrupting the Thread.
I hope u get my question
You can try message center https://developer.xamarin.com/guides/xamarin-forms/messaging-center/
-- Or --
You can use IProgress in Task https://msdn.microsoft.com/en-us/library/hh873175.aspx, you need pass the IProgress into dependency service
-- Or --
You can try Rx .NET http://rxwiki.wikidot.com/101samples
Answers
You can try message center https://developer.xamarin.com/guides/xamarin-forms/messaging-center/
-- Or --
You can use IProgress in Task https://msdn.microsoft.com/en-us/library/hh873175.aspx, you need pass the IProgress into dependency service
-- Or --
You can try Rx .NET http://rxwiki.wikidot.com/101samples