AWFDataAnimationDataSource
Objective-C
@protocol AWFDataAnimationDataSource <AWFAnimationDataSource>Swift
protocol AWFDataAnimationDataSource : AWFAnimationDataSourceThe AWFDataAnimationDataSource is adopted by an object that provides the necessary data for an point-based
overlay to complete its animation.
- 
                  
                  Asks the data source for the data to be used for this animation. (required) DeclarationObjective-C - (nullable NSArray<id<AWFDataRepresentable>> *)dataObjectsForAnimation: (nonnull AWFAnimation *)animation;Swift func dataObjects(for animation: AWFAnimation) -> [AWFDataRepresentable]?ParametersanimationThe animation object requesting the data Return ValueAn array of data items to use for the animation. These instances may vary depending on subclasses and what they expect to receive 
- 
                  
                  Asks the data source if data needs to be requested for the animation. DeclarationObjective-C - (BOOL)shouldLoadDataForAnimation:(nonnull AWFAnimation *)animation;Swift func shouldLoadData(for animation: AWFAnimation) -> BoolParametersanimationThe animation requesting the data Return ValueYESif the data source needs to load data, otherwiseNO
 View on GitHub
View on GitHub AWFDataAnimationDataSource Protocol Reference
        AWFDataAnimationDataSource Protocol Reference