Class YMKPlacemarkAnimation

Provides an interface to load and control animation of placemark.

Instance Methods

- pause

Pauses animation.

- play

Starts animation.

- playWithCallback:

Starts animation and handles the callback.

- resume

Resumes paused animation.

- setIconStyleWithStyle:

Changes the icon style.

- setIconWithImage:style:

Sets the animated image and icon style.

- setIconWithImage:style:callback:

Sets the animated image and icon style.

- setModelStyleWithStyle:

Changes the model style.

- setModelWithModel:style:

Sets the animated model and its style.

- setModelWithModel:style:callback:

Sets the animated model and its style.

- stop

Stops animation.

Properties

reversed

If true, animation will be played in the reverse direction.

valid

Tells if this object is valid or no.

Method Detail

-pause

- (void)pause

Pauses animation.

-play

- (void)play

Starts animation.

Removes the current play callback. Same as play(null).

-playWithCallback:

- (void)playWithCallback:(nonnull YMKCallback)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.

-setIconStyleWithStyle:

- (void)setIconStyleWithStyle:(nonnull YMKIconStyle *)style 

Changes the icon style.

Valid only for the icon.

-setIconWithImage:style:

- (void)setIconWithImage:(nonnull id< YRTAnimatedImageProvider >)image
                   style:(nonnull YMKIconStyle *)style 

Sets the animated image and icon style.

The new animation will be in the paused state.

-setIconWithImage:style:callback:

- (void)setIconWithImage:(nonnull id< YRTAnimatedImageProvider >)image
                   style:(nonnull YMKIconStyle *)style
                callback:(nonnull YMKCallback)callback 

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.

-setModelStyleWithStyle:

- (void)setModelStyleWithStyle:(nonnull YMKModelStyle *)style 

Changes the model style.

Valid only for the model.

-setModelWithModel:style:

- (void)setModelWithModel:(nonnull id< YRTAnimatedModelProvider >)model
                    style:(nonnull YMKModelStyle *)style 

Sets the animated model and its style.

The new animation will be in the paused state.

-setModelWithModel:style:callback:

- (void)setModelWithModel:(nonnull id< YRTAnimatedModelProvider >)model
                    style:(nonnull YMKModelStyle *)style
                 callback:(nonnull YMKCallback)callback 

Sets the animated model and its style.

The new animation will be in the paused state.
Parameters:
onFinished

is called when the model is loaded.

-stop

- (void)stop

Stops animation.

Animation returns to the initial paused state.

Property Detail

reversed

(assign, readwrite, getter=isReversed) BOOL reversed

If true, animation will be played in the reverse direction.

Default value is false.

valid

(assign, readonly, getter=isValid) BOOL valid

Tells if this object is valid or no.

Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.