Method | Description | |
---|---|---|
Init ( |
||
IsOnUIThread ( |
Determines if the current synchronization context is the UI Thread
|
|
RunOnUIThread ( System.Action action ) : void |
Will run the Action on the UI Thread. PERFORMANCE: Do not use in a loop. Context switching can cause significant performance degradation. Call this as infrequently as possible.
|
|
RunOnUIThread ( Func |
Will run the Func on the UI Thread. PERFORMANCE: Do not use in a loop. Context switching can cause significant performance degradation. Call this as infrequently as possible.
|
|
RunOnUIThreadAsync ( Func |
Will run the Func on the UIThread asynchronously. PERFORMANCE: Do not use in a loop. Context switching can cause significant performance degradation. Call this as infrequently as possible.
|
Method | Description | |
---|---|---|
RunOnUIThreadHelper ( System.Action action ) : Task | ||
RunOnUIThreadHelper ( Func |
||
RunSync ( Func |
public static Init ( |
||
uiContext | ||
return | void |
public static IsOnUIThread ( |
||
context | SynchronizationContext you want to compare with the UIThread SynchronizationContext | |
return | bool |
public static RunOnUIThread ( System.Action action ) : void | ||
action | System.Action | |
return | void |
public static RunOnUIThread ( Func |
||
action | Func |
|
return | void |
public static RunOnUIThreadAsync ( Func |
||
action | Func |
|
return | Task |