MonobjcMonobjc Documented Class Library
TimerWithTimeIntervalInvocationRepeats Method (seconds, invocation, repeats)
NamespacesMonobjc.FoundationNSTimerTimerWithTimeIntervalInvocationRepeats(Double, NSInvocation, Boolean)

Creates and returns a new NSTimer object initialized with the specified invocation object.

Original signature is '+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)seconds invocation:(NSInvocation *)invocation repeats:(BOOL)repeats'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSTimer TimerWithTimeIntervalInvocationRepeats(
	double seconds,
	NSInvocation invocation,
	bool repeats
)
Public Shared Function TimerWithTimeIntervalInvocationRepeats ( _
	seconds As Double, _
	invocation As NSInvocation, _
	repeats As Boolean _
) As NSTimer
public:
static NSTimer^ TimerWithTimeIntervalInvocationRepeats(
	double seconds, 
	NSInvocation^ invocation, 
	bool repeats
)
Parameters
seconds (Double)
The number of seconds between firings of the timer. If seconds is less than or equal to 0.0, this method chooses the nonnegative value of 0.1 milliseconds instead
invocation (NSInvocation)
The invocation to use when the timer fires. The timer instructs the invocation object to retain its arguments.
repeats (Boolean)
If YES, the timer will repeatedly reschedule itself until invalidated. If NO, the timer will be invalidated after it fires.
Return Value
A new NSTimer object, configured according to the specified parameters.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)