Device.StartTimer(TimeSpan, Func<Boolean>) Method

Definition

Starts a recurring timer on the UI thread using the device clock capabilities.

public static void StartTimer (TimeSpan interval, Func<bool> callback);
static member StartTimer : TimeSpan * Func<bool> -> unit

Parameters

interval
TimeSpan

The interval between invocations of the callback.

callback
Func<Boolean>

The action to run when the timer elapses.

Remarks

While the callback returns true, the timer will keep recurring.

Applies to