Answers for "how to set up a timer xamarin"

C#
1

xamarin timer example

Device.StartTimer(TimeSpan.FromSeconds(30), () =>
{
    // Do something
   
    return true; // True = Repeat again, False = Stop the timer
});
Posted by: Guest on July-31-2020
0

xamarin timer example

Device.StartTimer(TimeSpan.FromSeconds(1), () =>
{
    // called every 1 second
    // do stuff here

    return true; // return true to repeat counting, false to stop timer
});
Posted by: Guest on March-21-2022

C# Answers by Framework

Browse Popular Code Answers by Language