I used System.Threading.Timer
in Xamarin.Android
.
How I can use the same class in Xamarin.Forms
?
(I want to transfer my projec
Hi I found solution for the timer in Xamarin.forms
Device.StartTimer(TimeSpan.FromMilliseconds(1000), OnTimerTick);
// TimeSpan.FromMilliseconds(1000) specify the time in milisecond
//OnTimerTick it is function that will be executed return boolean
private bool OnTimerTick() { // code to be executed lblTime.Text = newHighScore .ToString(); newHighScore++; return true; }
I hope you get my point easily thanks.