-
Notifications
You must be signed in to change notification settings - Fork 3
/
MainThread.xml
221 lines (221 loc) · 14 KB
/
MainThread.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<Type Name="MainThread" FullName="Microsoft.Maui.ApplicationModel.MainThread">
<TypeSignature Language="C#" Value="public static class MainThread" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit MainThread extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.Maui.ApplicationModel.MainThread" />
<TypeSignature Language="VB.NET" Value="Public Class MainThread" />
<TypeSignature Language="C++ CLI" Value="public ref class MainThread abstract sealed" />
<TypeSignature Language="F#" Value="type MainThread = class" />
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
The MainThread class allows applications to run code on the main thread of execution, and to determine if a particular block of code is currently running on the main thread.
</summary>
<remarks>Main Thread helpers.</remarks>
</Docs>
<Members>
<Member MemberName="BeginInvokeOnMainThread">
<MemberSignature Language="C#" Value="public static void BeginInvokeOnMainThread (Action action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void BeginInvokeOnMainThread(class System.Action action) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.BeginInvokeOnMainThread(System.Action)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub BeginInvokeOnMainThread (action As Action)" />
<MemberSignature Language="C++ CLI" Value="public:
 static void BeginInvokeOnMainThread(Action ^ action);" />
<MemberSignature Language="F#" Value="static member BeginInvokeOnMainThread : Action -> unit" Usage="Microsoft.Maui.ApplicationModel.MainThread.BeginInvokeOnMainThread action" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="action" Type="System.Action" />
</Parameters>
<Docs>
<param name="action">The action to invoke on the main thread.</param>
<summary>
Invokes an action on the main thread of the application.
</summary>
<remarks />
</Docs>
</Member>
<Member MemberName="GetMainThreadSynchronizationContextAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<System.Threading.SynchronizationContext> GetMainThreadSynchronizationContextAsync ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<class System.Threading.SynchronizationContext> GetMainThreadSynchronizationContextAsync() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.GetMainThreadSynchronizationContextAsync" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetMainThreadSynchronizationContextAsync () As Task(Of SynchronizationContext)" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Threading::Tasks::Task<System::Threading::SynchronizationContext ^> ^ GetMainThreadSynchronizationContextAsync();" />
<MemberSignature Language="F#" Value="static member GetMainThreadSynchronizationContextAsync : unit -> System.Threading.Tasks.Task<System.Threading.SynchronizationContext>" Usage="Microsoft.Maui.ApplicationModel.MainThread.GetMainThreadSynchronizationContextAsync " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<System.Threading.SynchronizationContext></ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Gets the main thread synchonization context.
</summary>
<returns>The synchronization context for the main thread.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeOnMainThreadAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task InvokeOnMainThreadAsync (Action action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task InvokeOnMainThreadAsync(class System.Action action) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync(System.Action)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function InvokeOnMainThreadAsync (action As Action) As Task" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Threading::Tasks::Task ^ InvokeOnMainThreadAsync(Action ^ action);" />
<MemberSignature Language="F#" Value="static member InvokeOnMainThreadAsync : Action -> System.Threading.Tasks.Task" Usage="Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync action" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="action" Type="System.Action" />
</Parameters>
<Docs>
<param name="action">The action to invoke on the main thread.</param>
<summary>
Invokes an action on the main thread of the application asynchronously.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> object with the current status of the asynchronous operation.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeOnMainThreadAsync">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task InvokeOnMainThreadAsync (Func<System.Threading.Tasks.Task> funcTask);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task InvokeOnMainThreadAsync(class System.Func`1<class System.Threading.Tasks.Task> funcTask) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync(System.Func{System.Threading.Tasks.Task})" />
<MemberSignature Language="VB.NET" Value="Public Shared Function InvokeOnMainThreadAsync (funcTask As Func(Of Task)) As Task" />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Threading::Tasks::Task ^ InvokeOnMainThreadAsync(Func<System::Threading::Tasks::Task ^> ^ funcTask);" />
<MemberSignature Language="F#" Value="static member InvokeOnMainThreadAsync : Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task" Usage="Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync funcTask" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="funcTask" Type="System.Func<System.Threading.Tasks.Task>" />
</Parameters>
<Docs>
<param name="funcTask">The function task to execute on the main thread.</param>
<summary>
Invokes a function on the main thread of the application asynchronously.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> object that can be awaited.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeOnMainThreadAsync<T>">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<T> InvokeOnMainThreadAsync<T> (Func<System.Threading.Tasks.Task<T>> funcTask);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<!!T> InvokeOnMainThreadAsync<T>(class System.Func`1<class System.Threading.Tasks.Task`1<!!T>> funcTask) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync``1(System.Func{System.Threading.Tasks.Task{``0}})" />
<MemberSignature Language="VB.NET" Value="Public Shared Function InvokeOnMainThreadAsync(Of T) (funcTask As Func(Of Task(Of T))) As Task(Of T)" />
<MemberSignature Language="C++ CLI" Value="public:
generic <typename T>
 static System::Threading::Tasks::Task<T> ^ InvokeOnMainThreadAsync(Func<System::Threading::Tasks::Task<T> ^> ^ funcTask);" />
<MemberSignature Language="F#" Value="static member InvokeOnMainThreadAsync : Func<System.Threading.Tasks.Task<'T>> -> System.Threading.Tasks.Task<'T>" Usage="Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync funcTask" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<T></ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="funcTask" Type="System.Func<System.Threading.Tasks.Task<T>>" />
</Parameters>
<Docs>
<typeparam name="T">Type of the object to be returned.</typeparam>
<param name="funcTask">The function task to execute on the main thread.</param>
<summary>
Invokes a function on the main thread of the application asynchronously.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> object that can be awaited to capture the result object.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InvokeOnMainThreadAsync<T>">
<MemberSignature Language="C#" Value="public static System.Threading.Tasks.Task<T> InvokeOnMainThreadAsync<T> (Func<T> func);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Threading.Tasks.Task`1<!!T> InvokeOnMainThreadAsync<T>(class System.Func`1<!!T> func) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync``1(System.Func{``0})" />
<MemberSignature Language="VB.NET" Value="Public Shared Function InvokeOnMainThreadAsync(Of T) (func As Func(Of T)) As Task(Of T)" />
<MemberSignature Language="C++ CLI" Value="public:
generic <typename T>
 static System::Threading::Tasks::Task<T> ^ InvokeOnMainThreadAsync(Func<T> ^ func);" />
<MemberSignature Language="F#" Value="static member InvokeOnMainThreadAsync : Func<'T> -> System.Threading.Tasks.Task<'T>" Usage="Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThreadAsync func" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task<T></ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters>
<Parameter Name="func" Type="System.Func<T>" />
</Parameters>
<Docs>
<typeparam name="T">Type of the object to be returned.</typeparam>
<param name="func">The function task to execute on the main thread.</param>
<summary>
Invokes a function on the main thread of the application asynchronously.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> object that can be awaited to capture the result object.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsMainThread">
<MemberSignature Language="C#" Value="public static bool IsMainThread { get; }" />
<MemberSignature Language="ILAsm" Value=".property bool IsMainThread" />
<MemberSignature Language="DocId" Value="P:Microsoft.Maui.ApplicationModel.MainThread.IsMainThread" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property IsMainThread As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:
 static property bool IsMainThread { bool get(); };" />
<MemberSignature Language="F#" Value="static member IsMainThread : bool" Usage="Microsoft.Maui.ApplicationModel.MainThread.IsMainThread" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>
True if the current thread is the UI thread.
</summary>
<value>If main thread.</value>
<remarks />
</Docs>
</Member>
</Members>
</Type>