NSTimer.CreateTimer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateTimer(Double, Action<NSTimer>) | |
| CreateTimer(TimeSpan, Action<NSTimer>) | |
| CreateTimer(Double, Boolean, Action<NSTimer>) | |
| CreateTimer(Double, NSObject, Selector, NSObject, Boolean) |
CreateTimer(Double, Boolean, Action<NSTimer>)
[Foundation.Export("timerWithTimeInterval:repeats:block:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSTimer CreateTimer(double interval, bool repeats, Action<Foundation.NSTimer> block);
[<Foundation.Export("timerWithTimeInterval:repeats:block:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTimer : double * bool * Action<Foundation.NSTimer> -> Foundation.NSTimer
Parameters
- interval
- Double
- repeats
- Boolean
Returns
- Attributes
Applies to
CreateTimer(Double, NSObject, Selector, NSObject, Boolean)
[Foundation.Export("timerWithTimeInterval:target:selector:userInfo:repeats:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSTimer CreateTimer(double seconds, Foundation.NSObject target, ObjCRuntime.Selector selector, Foundation.NSObject? userInfo, bool repeats);
[<Foundation.Export("timerWithTimeInterval:target:selector:userInfo:repeats:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateTimer : double * Foundation.NSObject * ObjCRuntime.Selector * Foundation.NSObject * bool -> Foundation.NSTimer
Parameters
- seconds
- Double
- target
- NSObject
- selector
- Selector
- userInfo
- NSObject
- repeats
- Boolean
Returns
- Attributes