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
public class NSTimer : NSObject
Remarks
Requirements
Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0
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 | ClassHandle | IntPtr. The handle for this class. |
FireDate | NSDate. The date at with the action will be performed. | |
[read-only] | IsValid | Boolean. Returns true if the the timer will still fire at some point in the future. |
[read-only] | TimeInterval | Double. The time interval for the timer. |
[read-only] | UserInfo | NSObject. Custom user information that has been provided to the timer. |
Public Methods
static | CreateRepeatingScheduledTimer(Double, NSAction)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)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)Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop. | |
static | CreateRepeatingTimer(TimeSpan, NSAction)Creates a repeating timer with the specified parameters that can later be added to an NSRunLoop. | |
static | CreateScheduledTimer(Double, NSAction)Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode. | |
static | CreateScheduledTimer(TimeSpan, NSAction)Creates a timer with the specified parameters that can later be added to an NSRunLoop. | |
static | CreateScheduledTimer(Double, NSObject, Selector, NSObject, Boolean)Creates a timer with the specified parameters and schedules it for execution on the current NSRunLoop in the default mode. | |
static | CreateTimer(Double, NSAction)Creates a timer object that can be later added to an NSRunLoop. | |
static | CreateTimer(TimeSpan, NSAction)Creates a timer object that can be later added to an NSRunLoop. | |
static | CreateTimer(Double, NSObject, Selector, NSObject, Boolean)Creates a timer object that can be later added to an NSRunLoop. | |
Fire()Causes the action to be performed. | ||
Invalidate() |