AWFDataLoading
Objective-C
@protocol AWFDataLoading
Swift
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 (nonatomic, readonly) BOOL isLoading;Swift
var isLoading: Bool { get } -
A Boolean value indicating whether data values should be displayed using Metric values when applicable. The default value is
NO.Declaration
Objective-C
@property (nonatomic, getter=isMetric) BOOL metric;Swift
var isMetric: Bool { get set } -
Tells the object to load data for the specified coordinate.
Declaration
Objective-C
- (void)loadForCoordinate:(CLLocationCoordinate2D)coord;Swift
func load(for coord: CLLocationCoordinate2D)Parameters
coordThe 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() asyncParameters
completionBlockThe block to be executed on the completion or failure of a data loading process.
View on GitHub
AWFDataLoading Protocol Reference