actionThe Action to invoke
This example show how to set the Text of Label on the main thread, e.g. in response to an async event.
C# Example
Device.BeginInvokeOnMainThread (() => { label.Text = "Async operation completed"; });