SPEnterFrameEvent Class Reference
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
-
– initWithType:bubbles:passedTime:
Initializes an enter frame event with the passed time. Designated Initializer.
-
– initWithType:passedTime:
Initializes an enter frame event that does not bubble (recommended).
-
+ eventWithType:passedTime:
Factory method.
Properties
-
passedTime
The time that has passed since the last frame (in seconds).
property
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