I'm not sure how you could miss this, since you have the correct function name. In any case, you can do this using the lambda expression:
Activity.RunOnUiThread(() => { details.Text = OStateUserID.name + "\n" + OStateUserID.population; });
Or you can create a method for it
Activity.RunOnUiThread(Action); private void Action() { details.Text = OStateUserID.name + "\n" + OStateUserID.population; }
In the latter case, you will need to store the variables in private fields, if this is not the case. In the first case, it will work if the variables are in the same area as the call to RunOnUiThread.
source share