Share via


NSTimer.CreateScheduledTimer Method

Definition

Overloads

CreateScheduledTimer(Double, NSObject, Selector, NSObject, Boolean)

[Foundation.Export("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSTimer CreateScheduledTimer(double seconds, Foundation.NSObject target, ObjCRuntime.Selector selector, Foundation.NSObject? userInfo, bool repeats);
[<Foundation.Export("scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateScheduledTimer : double * Foundation.NSObject * ObjCRuntime.Selector * Foundation.NSObject * bool -> Foundation.NSTimer

Parameters

seconds
Double
target
NSObject
selector
Selector
userInfo
NSObject
repeats
Boolean

Returns

Attributes

Applies to

CreateScheduledTimer(Double, Boolean, Action<NSTimer>)

[Foundation.Export("scheduledTimerWithTimeInterval:repeats:block:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSTimer CreateScheduledTimer(double interval, bool repeats, Action<Foundation.NSTimer> block);
[<Foundation.Export("scheduledTimerWithTimeInterval:repeats:block:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateScheduledTimer : double * bool * Action<Foundation.NSTimer> -> Foundation.NSTimer

Parameters

interval
Double
repeats
Boolean
block
Action<NSTimer>

Returns

Attributes

Applies to

CreateScheduledTimer(Double, Action<NSTimer>)

public static Foundation.NSTimer CreateScheduledTimer(double seconds, Action<Foundation.NSTimer> action);
static member CreateScheduledTimer : double * Action<Foundation.NSTimer> -> Foundation.NSTimer

Parameters

seconds
Double
action
Action<NSTimer>

Returns

Applies to

CreateScheduledTimer(TimeSpan, Action<NSTimer>)

public static Foundation.NSTimer CreateScheduledTimer(TimeSpan when, Action<Foundation.NSTimer> action);
static member CreateScheduledTimer : TimeSpan * Action<Foundation.NSTimer> -> Foundation.NSTimer

Parameters

when
TimeSpan
action
Action<NSTimer>

Returns

Applies to