MainThread usage

59 Views Asked by At

I'm kinda new with the mobile app development, I've seen sometimes some snippets of async codes runned using MainThread.BeginInvokeOnMainThread, what's the difference beetween running some async code on MainThread.BeginInvokeOnMainThread vs running some async code without it?

Is there some behaviour differences with the different platforms?

1

There are 1 best solutions below

0
Jason On

UI can only be updated from the MAIN/UI thread. Using MainThread forces code that may be running on another thread to use the UI thread.