MainThread
IsMainThread
BeginInvokeOnMainThread(Action)
GetMainThreadSynchronizationContextAsync()
InvokeOnMainThreadAsync(Action)
InvokeOnMainThreadAsync(Func<Task>)
InvokeOnMainThreadAsync<T>(Func<T>)
InvokeOnMainThreadAsync<T>(Func<Task<T>>)
net7.0
namespace Microsoft.Maui.ApplicationModel
{
public static class MainThread
{
[AsyncStateMachine(typeof(<GetMainThreadSynchronizationContextAsync>d__7))]
public static Task<SynchronizationContext> GetMainThreadSynchronizationContextAsync();
}
}
| nuget.org | 0.0 % Reference this API |
|---|---|
| .NET | 6.07.0 |
Information specific to net7.0 | |
| Assembly | Microsoft.Maui.Essentials , Version=1.0.0.0, PublicKeyToken= |
| Referencing | Requires all:
|
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API