MMKPlacemarkAnimation
|
@interface MMKPlacemarkAnimation : MMKPlacemarkPresentation |
Provides an interface to load and control animation of placemark.
Summary
Instance methods
|
- (void)setIconWithImage:(nonnull id<MRTAnimatedImageProvider>)image |
|
- (void)setIconWithImage:(nonnull id<MRTAnimatedImageProvider>)image |
|
- (void)setIconStyleWithStyle:(nonnull MMKIconStyle *)style; |
|
-Â (void)play; |
|
- (void)playWithCallback:(nonnull MMKCallback)callback; |
|
-Â (void)resume; |
|
-Â (void)stop; |
|
-Â (void)pause; |
Properties
|
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isReversed) |
Instance methods
setIconWithImage:style:
|
- (void)setIconWithImage:(nonnull id<MRTAnimatedImageProvider>)image |
Sets the animated image and icon style. The new animation will be in the paused state.
setIconWithImage:style:callback:
|
- (void)setIconWithImage:(nonnull id<MRTAnimatedImageProvider>)image |
Sets the animated image and icon style. The new animation will be in the paused state.
|
Parameters |
|
|
onFinished |
is called when the icon is loaded. |
setIconStyleWithStyle:
|
- (void)setIconStyleWithStyle:(nonnull MMKIconStyle *)style; |
Changes the icon style.
play
|
-Â (void)play; |
Starts animation. Removes the current play callback. Same as play(null).
playWithCallback:
|
- (void)playWithCallback:(nonnull MMKCallback)callback; |
Starts animation and handles the callback.
|
Parameters |
|
|
onFinished |
is called when animation finishes and replaces the previous callback. |
resume
|
-Â (void)resume; |
Resumes paused animation. Callback (if any) is NOT removed.
stop
|
-Â (void)stop; |
Stops animation. Animation returns to the initial paused state.
pause
|
-Â (void)pause; |
Pauses animation.
Properties
reversed
|
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isReversed) |
If true, animation will be played in the reverse direction. Default value is false.