Timer

Overview

Timer class to trigger a method every few msec.

Location


 

constructor

 

constructor

 

Timer()

 

init()

 

Timer()

 

Sub New()

constructor (Int32)

 

constructor(aInterval: Int32)

 

Timer(Int32 aInterval)

 

init(_ aInterval: Int32)

 

Timer(Int32 aInterval)

 

Sub New(aInterval As Int32)

Parameters:

  • aInterval:

constructor (Int32, Boolean)

 

constructor(aInterval: Int32; aRepeat: Boolean)

 

Timer(Int32 aInterval, Boolean aRepeat)

 

init(_ aInterval: Int32, _ aRepeat: Boolean)

 

Timer(Int32 aInterval, Boolean aRepeat)

 

Sub New(aInterval As Int32, aRepeat As Boolean)

Parameters:

  • aInterval:
  • aRepeat:

Data

User data attached to the timer.

 

property Data: Object read write;

 

Object Data { get; set; }

 

var Data: Object { get{} set{} }

 

Object Data { __get; __set; }

 

Property Data() As Object

Dispose

 

method Dispose

 

void Dispose()

 

func Dispose()

 

void Dispose()

 

Sub Dispose()

Elapsed

Callback for when the timer triggered.

 

property Elapsed: TimerElapsedBlock read write;

 

TimerElapsedBlock Elapsed { get; set; }

 

var Elapsed: TimerElapsedBlock { get{} set{} }

 

TimerElapsedBlock Elapsed { __get; __set; }

 

Property Elapsed() As TimerElapsedBlock

Enabled

If true, it triggers.

 

property Enabled: Boolean read write;

 

Boolean Enabled { get; set; }

 

var Enabled: Boolean { get{} set{} }

 

Boolean Enabled { __get; __set; }

 

Property Enabled() As Boolean

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Interval

Interval in msec of this timer.

 

property Interval: Int32 read write;

 

Int32 Interval { get; set; }

 

var Interval: Int32 { get{} set{} }

 

Int32 Interval { __get; __set; }

 

Property Interval() As Int32

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

Repeat

If true, repeatedly trigger the timer, else only once.

 

property Repeat: Boolean read write;

 

Boolean Repeat { get; set; }

 

var Repeat: Boolean { get{} set{} }

 

Boolean Repeat { __get; __set; }

 

Property Repeat() As Boolean

Start

 

method Start

 

void Start()

 

func Start()

 

void Start()

 

Sub Start()

Stop

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

 

Data

User data attached to the timer.

 

property Data: Object read write;

 

Object Data { get; set; }

 

var Data: Object { get{} set{} }

 

Object Data { __get; __set; }

 

Property Data() As Object

Elapsed

Callback for when the timer triggered.

 

property Elapsed: TimerElapsedBlock read write;

 

TimerElapsedBlock Elapsed { get; set; }

 

var Elapsed: TimerElapsedBlock { get{} set{} }

 

TimerElapsedBlock Elapsed { __get; __set; }

 

Property Elapsed() As TimerElapsedBlock

Enabled

If true, it triggers.

 

property Enabled: Boolean read write;

 

Boolean Enabled { get; set; }

 

var Enabled: Boolean { get{} set{} }

 

Boolean Enabled { __get; __set; }

 

Property Enabled() As Boolean

Interval

Interval in msec of this timer.

 

property Interval: Int32 read write;

 

Int32 Interval { get; set; }

 

var Interval: Int32 { get{} set{} }

 

Int32 Interval { __get; __set; }

 

Property Interval() As Int32

Repeat

If true, repeatedly trigger the timer, else only once.

 

property Repeat: Boolean read write;

 

Boolean Repeat { get; set; }

 

var Repeat: Boolean { get{} set{} }

 

Boolean Repeat { __get; __set; }

 

Property Repeat() As Boolean

 

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

 

constructor

 

constructor

 

Timer()

 

init()

 

Timer()

 

Sub New()

constructor (Int32)

 

constructor(aInterval: Int32)

 

Timer(Int32 aInterval)

 

init(_ aInterval: Int32)

 

Timer(Int32 aInterval)

 

Sub New(aInterval As Int32)

Parameters:

  • aInterval:

constructor (Int32, Boolean)

 

constructor(aInterval: Int32; aRepeat: Boolean)

 

Timer(Int32 aInterval, Boolean aRepeat)

 

init(_ aInterval: Int32, _ aRepeat: Boolean)

 

Timer(Int32 aInterval, Boolean aRepeat)

 

Sub New(aInterval As Int32, aRepeat As Boolean)

Parameters:

  • aInterval:
  • aRepeat:

Dispose

 

method Dispose

 

void Dispose()

 

func Dispose()

 

void Dispose()

 

Sub Dispose()

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Start

 

method Start

 

void Start()

 

func Start()

 

void Start()

 

Sub Start()

Stop

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String