Skip to content

richiej84/AdvancedTimer

 
 

Repository files navigation

AdvancedTimer

AdvancedTimer implementation for Xamarin.Forms

AdvancedTimer

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.

Setup

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();

API Usage

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);

Methods

timer.startTimer();
timer.stopTimer();
timer.getInterval()
timer.setInterval(5000);
timer.isTimerEnabled();

Contributors

Thanks!

License

MIT License

About

AdvancedTimer implementation for Xamarin.Forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%