Mac Guides | Samples

MonoMac.Foundation.NSTimer Class

The timer can trigger actions at certain time intervals.

See Also: NSTimer

Syntax

[MonoMac.Foundation.Register("NSTimer", true)]
public class NSTimer : NSObject

Remarks

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSTimer are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
FireDateNSDate. The date at with the action will be performed.
[read-only]
IsValidBoolean. Returns true if the the timer will still fire at some point in the future.
[read-only]
TimeIntervalDouble. The time interval for the timer.
[read-only]
UserInfoNSObject. Custom user information that has been provided to the timer.

Public Methods

static
CreateRepeatingScheduledTimer(Double, NSAction) : NSTimer
Creates a repeating timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.
static
CreateRepeatingScheduledTimer(TimeSpan, NSAction) : NSTimer
Creates a repeating timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.
static
CreateRepeatingTimer(Double, NSAction) : NSTimer
Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop.
static
CreateRepeatingTimer(TimeSpan, NSAction) : NSTimer
Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop.
static
CreateScheduledTimer(Double, NSAction) : NSTimer
Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.
static
CreateScheduledTimer(TimeSpan, NSAction) : NSTimer
Creates a timer with the specified parameters that can later be added to an NSRunLoop.
static
CreateScheduledTimer(Double, NSObject, Selector, NSObject, Boolean) : NSTimer
Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode.
static
CreateTimer(Double, NSAction) : NSTimer
Creates a timer object that can be later added to an NSRunLoop.
static
CreateTimer(TimeSpan, NSAction) : NSTimer
Creates a timer object that can be later added to an NSRunLoop.
static
CreateTimer(Double, NSObject, Selector, NSObject, Boolean) : NSTimer
Creates a timer object that can be later added to an NSRunLoop.
Fire()
Causes the action to be performed.
Invalidate()

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSTimer object.