NSTimer.CreateTimer 메서드

정의

오버로드

CreateTimer(Double, Action<NSTimer>)
CreateTimer(TimeSpan, Action<NSTimer>)
CreateTimer(Double, Boolean, Action<NSTimer>)
CreateTimer(Double, NSObject, Selector, NSObject, Boolean)

나중에 NSRunLoop에 추가할 수 있는 타이머 개체를 만듭니다.

CreateTimer(Double, Action<NSTimer>)

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

매개 변수

seconds
Double
action
Action<NSTimer>

반환

적용 대상

CreateTimer(TimeSpan, Action<NSTimer>)

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

매개 변수

when
TimeSpan
action
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

매개 변수

interval
Double
repeats
Boolean
block
Action<NSTimer>

반환

특성

적용 대상

CreateTimer(Double, NSObject, Selector, NSObject, Boolean)

나중에 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

매개 변수

seconds
Double

타이머 발생 사이의 시간(초)입니다.

target
NSObject

타이머가 실행될 때 호출되는 개체입니다.

selector
Selector

에서 호출될 메서드입니다 target.

userInfo
NSObject

사용자 지정 사용자 정보입니다.

이 매개 변수는 null일 수 있습니다.

repeats
Boolean

이 타이머가 자동으로 반복되어야 하는지(true) 처음 실행한 후 무효화되는지 여부(false).

반환

특성

적용 대상