XPlat.Device.Display
XPlat.Storage.Pickers

IDispatcherTimer

Namespace: XPlat.UI

Provides a timer that is integrated into the Dispatcher queue, which is processed at a specified interval of time and at a specified priority.

public interface IDispatcherTimer

Supported platforms

Platform

Version

.NET Standard

1.4

Xamarin.Android

8.1

Xamarin.iOS

1.0

UWP

10.0

Events

Tick

Occurs when the timer interval has elapsed.

event EventHandler<object> Tick;

Properties

Interval

Gets or sets the amount of time between timer ticks.

TimeSpan Interval { get; set; }

IsEnabled

Gets a value indicating whether the timer is running.

bool IsEnabled { get; }

Methods

Start()

Starts the DispatcherTimer.

void Start();

Stop()

Stops the DispatcherTimer.

void Stop();

Related information

References

DispatcherTimer - Microsoft Docs