AWFDataLoading

@protocol AWFDataLoading

The AWFDataLoading protocol defines the required properties and methods for an object that performs the necessary data loading required for map elements.

  • A Boolean value that indicates whether the object is currently loading data.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isLoading;

    Swift

    var isLoading: Bool { get }
  • Tells the object to load data for the specified coordinate.

    Declaration

    Objective-C

    - (void)loadForCoordinate:(CLLocationCoordinate2D)coord;

    Swift

    func load(for coord: CLLocationCoordinate2D)

    Parameters

    coord

    The coordinate to request data for.

  • Sets the block to be executed when the object has completed the data loading process.

    Declaration

    Objective-C

    - (void)setCompletionBlock:(AWFDataLoadingCompletion)completionBlock;

    Swift

    func setCompletionBlock(_ completionBlock: AWFDataLoadingCompletion!)

    Parameters

    completionBlock

    The block to be executed on the completion or failure of a data loading process.