AWFDataAnimationDelegate

Objective-C

@protocol AWFDataAnimationDelegate <AWFAnimationDelegate>

Swift

protocol AWFDataAnimationDelegate : AWFAnimationDelegate

The AWFDataAnimationDelegate protocol defines a set of optional methods that can be used to be notified when the point data animation data changes.

  • Tells the delegate the animation has data objects to be added for the current position in the timeline. * Typically this is used by a AWFWeatherMap instance to be notified when data objects should be added to the map. *

    Declaration

    Objective-C

    - (void)animation:(nonnull AWFDataAnimation *)animation
        didAddDataObjects:(nonnull NSArray<id<AWFDataRepresentable>> *)objects;

    Swift

    optional func animation(_ animation: AWFDataAnimation, didAddDataObjects objects: [AWFDataRepresentable])

    Parameters

    animation

    The animation that added data objects.

    objects

    The data objects that are active for the current timeline range.

  • Tells the delegate the animation has data objects to be removed for the current position in the timeline. * Typically this is used by a AWFWeatherMap instance to be notified when data objects should be removed from the map. *

    Declaration

    Objective-C

    - (void)animation:(nonnull AWFDataAnimation *)animation
        didRemoveDataObjects:(nonnull NSArray<id<AWFDataRepresentable>> *)objects;

    Swift

    optional func animation(_ animation: AWFDataAnimation, didRemoveDataObjects objects: [AWFDataRepresentable])

    Parameters

    animation

    The animation managing the data objects.

    objects

    The data objects that are inactive for the current timeline range.