MainThread Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Main Thread helpers.
public static class MainThread
- Inheritance
-
System.ObjectMainThread
Remarks
Main Thread helpers.
Properties
IsMainThread |
Gets if it is the current main UI thread. |
Methods
BeginInvokeOnMainThread(Action) |
Invokes an action on the main thread of the application. |
GetMainThreadSynchronizationContextAsync() |
Gets the main thread synchonization context |
InvokeOnMainThreadAsync(Action) |
Invoke the main thread async |
InvokeOnMainThreadAsync(Func<Task>) |
Invoke the main thread async |
InvokeOnMainThreadAsync<T>(Func<T>) |
Invoke the main thread async |
InvokeOnMainThreadAsync<T>(Func<Task<T>>) |
Invoke the main thread async |