Timer

Overview

Timer class to trigger a method every few msec.

Location

Implements

 

constructor Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

constructor

 

Timer()

 

init()

 

Timer()

 

Sub New()

constructor (Int32) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

constructor(aInterval: Int32)

 

Timer(Int32 aInterval)

 

init(_ aInterval: Int32)

 

Timer(Int32 aInterval)

 

Sub New(aInterval As Int32)

Parameters:

  • aInterval:

constructor (Int32, Boolean) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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 UIKit for Mac

Dispose and stop this timer object.

 

method Dispose

 

Dispose()

 

func Dispose()

 

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 (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object) UIKit for Mac

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

Finalize()

 

func Finalize()

 

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 UIKit for Mac

Start this timer.

 

method Start

 

Start()

 

func Start()

 

Start()

 

Sub Start()

Stop UIKit for Mac

Stop this timer.

 

method Stop

 

Stop()

 

func Stop()

 

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 Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

constructor

 

Timer()

 

init()

 

Timer()

 

Sub New()

constructor (Int32) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

constructor(aInterval: Int32)

 

Timer(Int32 aInterval)

 

init(_ aInterval: Int32)

 

Timer(Int32 aInterval)

 

Sub New(aInterval As Int32)

Parameters:

  • aInterval:

constructor (Int32, Boolean) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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 UIKit for Mac

Dispose and stop this timer object.

 

method Dispose

 

Dispose()

 

func Dispose()

 

Dispose()

 

Sub Dispose()

Equals (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object) UIKit for Mac

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

Finalize()

 

func Finalize()

 

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 UIKit for Mac

Start this timer.

 

method Start

 

Start()

 

func Start()

 

Start()

 

Sub Start()

Stop UIKit for Mac

Stop this timer.

 

method Stop

 

Stop()

 

func Stop()

 

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