高德地图SDK(导航)  V11.1.000
<MAAnimatableAnnotation> Protocol Reference

#import <MAAnnotation.h>

Inheritance diagram for <MAAnimatableAnnotation>:
MAAnimatedAnnotation MAUserLocation

Instance Methods

(void) - step:
 动画帧更新回调接口,实现者可在内部做更新处理,如更新coordinate. (since 4.5.0) Animation frame update callback interface, implementers can perform update processing internally, such as updating coordinates. (since 4.5.0) More...
 
(BOOL) - isAnimationFinished
 动画是否已完成. 通过此方法判断是否需要将动画annotation移出渲染执行过程。(since 4.5.0) Whether the animation has been completed. This method is used to determine whether the animation annotation needs to be removed from the rendering execution process.(since 4.5.0) More...
 
(BOOL) - shouldAnimationStart
 动画是否可以开始. 通过此方法判断是否需要将动画annotation加入渲染过程,已经start且尚未finish的动画标注才会调用step方法。(since 6.0.0) Whether the animation can start. This method determines whether the animation annotation needs to be added to the rendering process. Only animations that have started but not yet finished will call the step method.(since 6.0.0) More...
 
(CLLocationDirection) - rotateDegree
 动画更新时调用此接口,获取annotationView的旋转角度,不实现默认为0. (since 4.5.0) This interface is called when the animation is updated to get the rotation angle of the annotationView. If not implemented, it defaults to 0. (since 4.5.0) More...
 

Detailed Description

支持动画需要实现的协议. since 4.5.0 Protocol that needs to be implemented to support animation. since 4.5.0

Method Documentation

◆ isAnimationFinished

- (BOOL) isAnimationFinished
required

动画是否已完成. 通过此方法判断是否需要将动画annotation移出渲染执行过程。(since 4.5.0) Whether the animation has been completed. This method is used to determine whether the animation annotation needs to be removed from the rendering execution process.(since 4.5.0)

Returns
YES动画已完成,NO没有完成 YES animation is completed, NO not completed

◆ rotateDegree

- (CLLocationDirection) rotateDegree
optional

动画更新时调用此接口,获取annotationView的旋转角度,不实现默认为0. (since 4.5.0) This interface is called when the animation is updated to get the rotation angle of the annotationView. If not implemented, it defaults to 0. (since 4.5.0)

Returns
当前annotation的旋转角度,正北为0度,顺时针方向。即正东90,正南180,正西270。 The rotation angle of the current annotation, with true north as 0 degrees, in a clockwise direction. That is, 90 degrees for due east, 180 degrees for due south, and 270 degrees for due west.

◆ shouldAnimationStart

- (BOOL) shouldAnimationStart
required

动画是否可以开始. 通过此方法判断是否需要将动画annotation加入渲染过程,已经start且尚未finish的动画标注才会调用step方法。(since 6.0.0) Whether the animation can start. This method determines whether the animation annotation needs to be added to the rendering process. Only animations that have started but not yet finished will call the step method.(since 6.0.0)

Returns
YES 可以开始,NO 尚未开始。 YES can start, NO has not started yet.

◆ step:

- (void) step: (CGFloat)  timeDelta
required

动画帧更新回调接口,实现者可在内部做更新处理,如更新coordinate. (since 4.5.0) Animation frame update callback interface, implementers can perform update processing internally, such as updating coordinates. (since 4.5.0)

Parameters
timeDelta时间步长,单位秒 time step, unit seconds

The documentation for this protocol was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。