Protocol: CAMediaTiming

Overview

The CAMediaTiming protocol models a hierarchical timing system, with each object describing the mapping of time values from the object’s parent to local time.Determines if the receiver plays in the reverse upon completion. (required)Specifies the begin time of the receiver in relation to its parent object, if applicable. (required)Specifies the basic duration of the animation, in seconds. (required)Determines if the receiver’s presentation is frozen or removed once its active duration has completed. (required)Determines the number of times the animation will repeat. (required)Determines how many seconds the animation will repeat for. (required)Specifies how time is mapped to receiver’s time space from the parent time space. (required)Specifies an additional time offset in active local time. (required)These constants determine how the timed object behaves once its active duration has completed. They are used with the fillMode property.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Boolean) autoreverses

Determines if the receiver plays in the reverse upon completion. (required) When YES, the receiver plays backwards after playing forwards. Defaults to NO.

Returns:

  • (Boolean)

- (CFTimeInterval) beginTime

Specifies the begin time of the receiver in relation to its parent object, if applicable. (required) Defaults to 0.

Returns:

  • (CFTimeInterval)

- (CFTimeInterval) duration

Specifies the basic duration of the animation, in seconds. (required) Defaults to 0.

Returns:

  • (CFTimeInterval)

- (String) fillMode

Determines if the receiver’s presentation is frozen or removed once its active duration has completed. (required) The possible values are described in “Fill Modes”. The default is kCAFillModeRemoved.

Returns:

- (Float) repeatCount

Determines the number of times the animation will repeat. (required) May be fractional. If the repeatCount is 0, it is ignored. Defaults to 0. If both repeatDuration and repeatCount are specified the behavior is undefined.Setting this property to HUGE_VALF will cause the animation to repeat forever.

Returns:

- (CFTimeInterval) repeatDuration

Determines how many seconds the animation will repeat for. (required) Defaults to 0. If the repeatDuration is 0, it is ignored. If both repeatDuration and repeatCount are specified the behavior is undefined.

Returns:

  • (CFTimeInterval)

- (Float) speed

Specifies how time is mapped to receiver’s time space from the parent time space. (required) For example, if speed is 2.0 local time progresses twice as fast as parent time. Defaults to 1.0.

Returns:

- (CFTimeInterval) timeOffset

Specifies an additional time offset in active local time. (required) Defaults to 0. .

Returns:

  • (CFTimeInterval)