PMTweening Protocol Reference
| Conforms to | NSObject |
| Declared in | PMTweening.h |
Overview
- The
PMTweeningprotocol declares methods and properties that must be adopted by custom tweening classes in order to participate in PMTween.
In addition to adopting the required methods, custom tweening classes must also post the PMTweenDidCompleteNotification notification in order to properly interact with other PMTween classes.
Tasks
Controlling a Tween
-
– stopTweenrequired method -
– startTweenrequired method -
– pauseTweenrequired method -
– resumeTweenrequired method -
reversingproperty required method -
tempoproperty required method
Updating a Tween
-
– updateWithTimeInterval:required method
Properties
reversing
A Boolean which determines whether a tween operation, when it has tweened to the ending value, should tween from the ending value back to the starting value.
@property (nonatomic, assign, getter=isReversing) BOOL reversingDiscussion
@remarks When set to YES, the tween plays in reverse after completing a forward tween. In this state, a tween cycle represents the combination of the forward and back tweens. The default value is NO.
Declared In
PMTweening.htempo
A concrete PMTweenTempo subclass that provides an update “beat” while a tween operation occurs.
@property (nonatomic, strong) PMTweenTempo *tempoDiscussion
@remarks While you don’t have to implement PMTweenTempo for your own class updating, other tween collection classes like PMTweenGroup will try to remove any tempos of tween objects added to them.
Declared In
PMTweening.hInstance Methods
pauseTween
Pauses a tween that is currently tweening. (required)
- (void)pauseTweenDiscussion
@remarks When this method is called, a tween should only enter a paused state if it is currently tweening.
Declared In
PMTweening.hresumeTween
Resumes a tween that is currently paused. (required)
- (void)resumeTweenDiscussion
@remarks When this method is called, a tween should only resume tweening if it is currently paused.
Declared In
PMTweening.hstartTween
Starts a tween that is currently stopped. (required)
- (void)startTweenDiscussion
@remarks When this method is called, a tween should only start tweening if it is stopped.
Declared In
PMTweening.h