Mobile/CafeLib.Mobile/Services/MobileService.cs
/// <summary>
/// Run action on main UI thread.
/// </summary>
/// <param name="action">action</param>
Run action on main UI thread.
Run action on main UI thread .
public void RunOnMainThread(Action action)
        {
            if (IsOnMainThread())
            {
                action();
            }
            else
            {
                QueueOnMainThread(action);
            }
        }
public void RunOnMainThread ( Action action ) { if ( IsOnMainThread ( ) ) { action ( ) ; } else { QueueOnMainThread ( action ) ; } }
Run action on main UI thread.
Run action on main UI thread .
action
Action
None