Contents

CFRunLoopTimerIsValid(_:)

Returns a Boolean value that indicates whether a CFRunLoopTimer object is valid and able to fire.

Declaration

func CFRunLoopTimerIsValid(_ timer: CFRunLoopTimer!) -> Bool

Parameters

  • timer:

    The run loop timer to examine.

Return Value

true if timer is valid; otherwise false.

Discussion

A non-repeating timer is automatically invalidated after it fires.

See Also

CFRunLoopTimer Miscellaneous Functions