AdvancedTimer implementation for Xamarin.Forms
Timer object and its methods are implemented for extended support for timers. You can start, stop, change interval of a timer. For Xamarin.Forms projects Can be used with Dependency service.
- Available on NuGet: https://www.nuget.org/packages/Mobilist.AdvancedTimer.Forms.Plugin/
- Install into your PCL project and Client projects.
In your iOS, Android, and Windows Phone projects please call:
AdvancedTimer.Forms.Plugin.iOS.AdvancedTimerImplementation.Init();
You must do this AFTER you call Xamarin.Forms.Init();
To gain access to the Timer class simply use the dependency service:
IAdvancedTimer timer = DependencyService.Get<IAdvancedTimer>();
You MUST call initTimer for timer initialization;
timer.initTimer(3000, timerElapsed, true);
initTimer(interval, Eventhandler function, AutoReset);
timer.startTimer();
timer.stopTimer();
timer.getInterval()
timer.setInterval(5000);
timer.isTimerEnabled();
Thanks!
MIT License