NSTimer.CreateTimer Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CreateTimer(Double, Action<NSTimer>) | |
CreateTimer(TimeSpan, Action<NSTimer>) | |
CreateTimer(Double, Boolean, Action<NSTimer>) | |
CreateTimer(Double, NSObject, Selector, NSObject, Boolean) |
Crea un objeto de temporizador que se puede agregar más adelante a un NSRunLoop. |
CreateTimer(Double, Action<NSTimer>)
CreateTimer(TimeSpan, Action<NSTimer>)
CreateTimer(Double, Boolean, Action<NSTimer>)
[Foundation.Export("timerWithTimeInterval:repeats:block:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSTimer CreateTimer (double interval, bool repeats, Action<Foundation.NSTimer> block);
static member CreateTimer : double * bool * Action<Foundation.NSTimer> -> Foundation.NSTimer
Parámetros
- interval
- Double
- repeats
- Boolean
Devoluciones
- Atributos
Se aplica a
CreateTimer(Double, NSObject, Selector, NSObject, Boolean)
Crea un objeto de temporizador que se puede agregar más adelante a un NSRunLoop.
[Foundation.Export("timerWithTimeInterval:target:selector:userInfo:repeats:")]
public static Foundation.NSTimer CreateTimer (double seconds, Foundation.NSObject target, ObjCRuntime.Selector selector, Foundation.NSObject userInfo, bool repeats);
static member CreateTimer : double * Foundation.NSObject * ObjCRuntime.Selector * Foundation.NSObject * bool -> Foundation.NSTimer
Parámetros
- seconds
- Double
Número de segundos entre los disparos del temporizador.
- target
- NSObject
Objeto que se invocará cuando se active el temporizador.
- selector
- Selector
Método que se invocará en target
.
- repeats
- Boolean
Si este temporizador debe repetirse automáticamente (true) o se invalidará después de activar la primera vez (false).
Devoluciones
- Atributos