Table of Contents

Interface IPlatformThreadingInterface

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

Provides platform-specific services relating to threading.

[PrivateApi]
public interface IPlatformThreadingInterface

Properties

CurrentThreadIsLoopThread

bool CurrentThreadIsLoopThread { get; }

Property Value

bool

Methods

Signal(DispatcherPriority)

void Signal(DispatcherPriority priority)

Parameters

priority DispatcherPriority

StartTimer(DispatcherPriority, TimeSpan, Action)

Starts a timer.

IDisposable StartTimer(DispatcherPriority priority, TimeSpan interval, Action tick)

Parameters

priority DispatcherPriority
interval TimeSpan

The interval.

tick Action

The action to call on each tick.

Returns

IDisposable

An IDisposable used to stop the timer.

Events

Signaled

event Action<DispatcherPriority?>? Signaled

Event Type

Action<DispatcherPriority?>