Open ClassFoundation5.9.0
Timer
class Timer
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(fire: Date, interval: TimeInterval, repeats: Bool, block: (Timer) -> Void
) Alternative API for timer creation with a block.
convenience init(timeInterval: TimeInterval, repeats: Bool, block: (Timer) -> Void
) Creates and returns a new Timer object initialized with the specified block object.
class func scheduledTimer(withTimeInterval: TimeInterval, repeats: Bool, block: (Timer) -> Void
) -> Timer Alternative API for timer creation with a block.
var fireDate: Date
var isValid: Bool
var timeInterval: TimeInterval
var tolerance: TimeInterval
var userInfo: Any?
func fire(
) func invalidate(
)