Inherits from SPEvent : NSObject
Declared in SPEnterFrameEvent.h

Overview

An SPEnterFrameEvent is triggered once per frame and is dispatched to all objects in the display tree.

It contains information about the time that has passed since the last frame. That way, you can easily make animations that are independent of the frame rate, but take the passed time into account.

Tasks

Initialization

Properties

  •   passedTime

    The time that has passed since the last frame (in seconds).

    property

Properties

passedTime

The time that has passed since the last frame (in seconds).

@property (nonatomic, readonly) double passedTime

Discussion

The time that has passed since the last frame (in seconds).

Declared In

SPEnterFrameEvent.h

Class Methods

eventWithType:passedTime:

Factory method.

+ (instancetype)eventWithType:(NSString *)type passedTime:(double)seconds

Discussion

Factory method.

Declared In

SPEnterFrameEvent.h

Instance Methods

initWithType:bubbles:passedTime:

Initializes an enter frame event with the passed time. Designated Initializer.

- (instancetype)initWithType:(NSString *)type bubbles:(BOOL)bubbles passedTime:(double)seconds

Discussion

Initializes an enter frame event with the passed time. Designated Initializer.

Declared In

SPEnterFrameEvent.h

initWithType:passedTime:

Initializes an enter frame event that does not bubble (recommended).

- (instancetype)initWithType:(NSString *)type passedTime:(double)seconds

Discussion

Initializes an enter frame event that does not bubble (recommended).

Declared In

SPEnterFrameEvent.h