Instance Method

nextFrameTime()

Returns the time at which the next update should happen.

Declaration

func nextFrameTime() -> CFTimeInterval

Return Value

The time at which the next update should happen.

Discussion

If infinite, no update needs to be scheduled yet. If nextFrameTime is the current frame time, a continuous animation is running and an update should be scheduled after an appropriate delay.

See Also

Rendering a Frame

func updateBounds() -> CGRect

Returns the bounds of the update region that contains all pixels that will be rendered by the current frame.

func addUpdate(CGRect)

Adds the rectangle to the update region of the current frame.

func render()

Render the update region of the current frame to the target context.

func endFrame()

Release any data associated with the current frame.