MSFAnimationStyleBuilder
Objective-C
@interface MSFAnimationStyleBuilder : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFAnimationStyleBuilder : NSObject
A builder for AnimationStyle instances.
-
Constructs an AnimationStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init;Swift
init!() -
Returns the relative speed of the animation.
Declaration
Objective-C
- (float)getRelativeSpeed;Swift
func getRelativeSpeed() -> FloatReturn Value
The relative speed of the animation (1.0 corresponds to the default speed).
-
Sets the relative speed of the animation. The relative speed affects all phases of the animation.
Declaration
Objective-C
- (void)setRelativeSpeed:(float)relativeSpeed;Swift
func setRelativeSpeed(_ relativeSpeed: Float)Parameters
relativeSpeedThe new relative speed of the animation.
-
Returns the phase-in duration of the animation.
Declaration
Objective-C
- (float)getPhaseInDuration;Swift
func getPhaseInDuration() -> FloatReturn Value
The phase-in duration of the animation in seconds. By default this is 0.5.
-
Sets the phase-in duration of the animation.
Declaration
Objective-C
- (void)setPhaseInDuration:(float)duration;Swift
func setPhaseInDuration(_ duration: Float)Parameters
durationThe new phase-in duration of the animation in seconds.
-
Returns the phase-out duration of the animation.
Declaration
Objective-C
- (float)getPhaseOutDuration;Swift
func getPhaseOutDuration() -> FloatReturn Value
The phase-out duration of the animation in seconds. By default this is 0.0, which means instant effect.
-
Sets the phase-out duration of the animation.
Declaration
Objective-C
- (void)setPhaseOutDuration:(float)duration;Swift
func setPhaseOutDuration(_ duration: Float)Parameters
durationThe new phase-out duration of the animation in seconds.
-
Returns the fade animation type.
Declaration
Objective-C
- (enum MSFAnimationType)getFadeAnimationType;Swift
func getFadeAnimationType() -> MSFAnimationTypeReturn Value
The type of the fade animation.
-
Sets the fade animation type.
Declaration
Objective-C
- (void)setFadeAnimationType:(enum MSFAnimationType)animType;Swift
func setFade(_ animType: MSFAnimationType)Parameters
animTypeThe new type of the fade animation.
-
Returns the size-related animation type.
Declaration
Objective-C
- (enum MSFAnimationType)getSizeAnimationType;Swift
func getSizeAnimationType() -> MSFAnimationTypeReturn Value
The type of the size-related animation.
-
Sets the size-related animation type.
Declaration
Objective-C
- (void)setSizeAnimationType:(enum MSFAnimationType)animType;Swift
func setSizeAnimationType(_ animType: MSFAnimationType)Parameters
animTypeThe new type of the size-related animation.
-
Builds a new instance of the AnimationStyle object using previously set parameters.
Declaration
Objective-C
- (MSFAnimationStyle *)buildStyle;Swift
func buildStyle() -> MSFAnimationStyle!Return Value
A new AnimationStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()