C# Class PerpetualEngine.SimpleTimer

iOS specific implementation to let EditGroup(string) return a n iOSSimpleStorage object
Exibir arquivo Open project: perpetual-mobile/PerpetualEngine

Public Methods

Method Description
Clear ( ) : void

Remove timers. Callback actions will not be triggered any more after this call (no pending triggers).

DisableAutomaticBackgroundHandling ( ) : void

Tells timer not to handle background/foreground transition of app. Currently only supported on iOS.

IsRunning ( ) : bool

Return if the timer is currently Running.

Repeat ( System.TimeSpan timeSpan, System.Action action, bool immediate = false ) : void

Schedule timer.

Private Methods

Method Description
SimpleTimer ( ) : System

Method Details

Clear() public abstract method

Remove timers. Callback actions will not be triggered any more after this call (no pending triggers).
public abstract Clear ( ) : void
return void

DisableAutomaticBackgroundHandling() public method

Tells timer not to handle background/foreground transition of app. Currently only supported on iOS.
public DisableAutomaticBackgroundHandling ( ) : void
return void

IsRunning() public abstract method

Return if the timer is currently Running.
public abstract IsRunning ( ) : bool
return bool

Repeat() public abstract method

Schedule timer.
public abstract Repeat ( System.TimeSpan timeSpan, System.Action action, bool immediate = false ) : void
timeSpan System.TimeSpan Trigger interval.
action System.Action To be executed when timer triggers.
immediate bool
return void