MMKPlacemarkAnimation
class MMKPlacemarkAnimation : NSObject |
Provides an interface to load and control animation of placemark.
Summary
Instance methods
func setIconWithImage( image: MRTAnimatedImageProvider, style: MMKIconStyle_) |
func setIconWithImage( image: MRTAnimatedImageProvider_, |
func setIconStyleWith( style: MMKIconStyle_) |
func play() |
func play(callback: @escaping MMKCallback) |
func resume() |
func stop() |
func pause() |
Properties
var isReversed: Bool { get set } |
var isValid: Bool { get } |
Instance methods
setIconWithImage(_:style:)
func setIconWithImage( image: MRTAnimatedImageProvider, style: MMKIconStyle_) |
Sets the animated image and icon style. The new animation will be in the paused state.
setIconWithImage(_:style:callback:)
func setIconWithImage( image: MRTAnimatedImageProvider_, |
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. |
setIconStyleWith(_:)
func setIconStyleWith( style: MMKIconStyle_) |
Changes the icon style.
play()
func play() |
Starts animation. Removes the current play callback. Same as play(null).
play(callback:)
func play(callback: @escaping MMKCallback) |
Starts animation and handles the callback.
Parameters |
|
onFinished |
is called when animation finishes and replaces the previous callback. |
resume()
func resume() |
Resumes paused animation. Callback (if any) is NOT removed.
stop()
func stop() |
Stops animation. Animation returns to the initial paused state.
pause()
func pause() |
Pauses animation.
Properties
isReversed
var isReversed: Bool { get set } |
If true, animation will be played in the reverse direction. Default value is false.
isValid
var isValid: Bool { get } |
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.