MapItemKeyFrameTrack
public class MapItemKeyFrameTrack
extension MapItemKeyFrameTrack: NativeBase
extension MapItemKeyFrameTrack: Hashable
Stores keyframes for interpolation of a map item property using a specific easing function and interpolation mode.
The keyframe track object is used to create animations,
see MapMarkerAnimation and MapPolylineAnimation.
-
Thrown when a problem occurs while trying to create
MapItemKeyFrameTrack.Declaration
Swift
public typealias InstantiationError = InstantiationErrorCode -
Describes a reason for failing to create a
See moreMapItemKeyFrameTrack.Declaration
Swift
public enum InstantiationErrorCode : UInt32, CaseIterable, Codableextension MapItemKeyFrameTrack.InstantiationErrorCode : Error -
Creates a map item position keyframe track. It enables animations over the geographical coordinates where the map item is positioned.
Throws
MapItemKeyFrameTrack.InstantiationErrorIf the supplied keyframe list is empty or first keyframe duration is not 0.Declaration
Swift
public static func moveTo(keyframes: [GeoCoordinatesKeyframe], easing: Easing, interpolationMode: KeyframeInterpolationMode) throws -> MapItemKeyFrameTrackParameters
keyframesThe list of keyframes that specify how the map item position changes over time.
easingThe easing to apply during keyframe interpolation.
interpolationModeThe type of interpolation done between keyframe values.
Return Value
MapItemKeyFrameTrack instance.
-
Creates a keyframe track used to animate the progress of a polyline.
Each scalar keyframe specifies the value of
MapPolyline.progressat key points of the animation.Throws
MapItemKeyFrameTrack.InstantiationErrorIf the supplied keyframe list is empty or first keyframe duration is not 0.Declaration
Swift
public static func polylineProgress(keyframes: [ScalarKeyframe], easing: Easing, interpolationMode: KeyframeInterpolationMode) throws -> MapItemKeyFrameTrackParameters
keyframesThe list of keyframes that specify how the polyline progress changes over time.
easingThe easing to apply during keyframe interpolation.
interpolationModeThe type of interpolation done between keyframe values.
Return Value
MapItemKeyFrameTrack instance.