Timer

Overview

Timer class to trigger a callback at timed occasions.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

 

constructor

 

constructor(aInterval: Int32; aRepeat: Boolean := true; aCallback: Action<RemObjects.Elements.RTL.Timer>)

 

Timer(Int32 aInterval, Boolean aRepeat = true, Action<RemObjects.Elements.RTL.Timer> aCallback)

 

init(_ aInterval: Int32, _ aRepeat: Boolean = true, _ aCallback: (Timer) -> ())

 

Timer(Integer aInterval, Boolean aRepeat, Action<RemObjects.Elements.RTL.Timer> aCallback)

 

Sub New(aInterval As Int32, aRepeat As Boolean = true, aCallback As Action<RemObjects.Elements.RTL.Timer>)

Parameters:

  • aInterval:
  • aRepeat:
  • aCallback:

Enabled

 

property Enabled: Boolean read;

 

Boolean Enabled { get; }

 

var Enabled: Boolean { get{} }

 

Boolean Enabled { __get; }

 

ReadOnly Property Enabled() As Boolean

Interval

 

property Interval: Int32 read;

 

Int32 Interval { get; }

 

var Interval: Int32 { get{} }

 

Integer Interval { __get; }

 

ReadOnly Property Interval() As Int32

Repeat

 

property Repeat: Boolean read;

 

Boolean Repeat { get; }

 

var Repeat: Boolean { get{} }

 

Boolean Repeat { __get; }

 

ReadOnly Property Repeat() As Boolean

Start

Start this timer.

 

method Start

 

void Start()

 

func Start()

 

void Start()

 

Sub Start()

Stop

Stop this timer.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()

 

Enabled

 

property Enabled: Boolean read;

 

Boolean Enabled { get; }

 

var Enabled: Boolean { get{} }

 

Boolean Enabled { __get; }

 

ReadOnly Property Enabled() As Boolean

Interval

 

property Interval: Int32 read;

 

Int32 Interval { get; }

 

var Interval: Int32 { get{} }

 

Integer Interval { __get; }

 

ReadOnly Property Interval() As Int32

Repeat

 

property Repeat: Boolean read;

 

Boolean Repeat { get; }

 

var Repeat: Boolean { get{} }

 

Boolean Repeat { __get; }

 

ReadOnly Property Repeat() As Boolean

 

constructor

 

constructor(aInterval: Int32; aRepeat: Boolean := true; aCallback: Action<RemObjects.Elements.RTL.Timer>)

 

Timer(Int32 aInterval, Boolean aRepeat = true, Action<RemObjects.Elements.RTL.Timer> aCallback)

 

init(_ aInterval: Int32, _ aRepeat: Boolean = true, _ aCallback: (Timer) -> ())

 

Timer(Integer aInterval, Boolean aRepeat, Action<RemObjects.Elements.RTL.Timer> aCallback)

 

Sub New(aInterval As Int32, aRepeat As Boolean = true, aCallback As Action<RemObjects.Elements.RTL.Timer>)

Parameters:

  • aInterval:
  • aRepeat:
  • aCallback:

Start

Start this timer.

 

method Start

 

void Start()

 

func Start()

 

void Start()

 

Sub Start()

Stop

Stop this timer.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()