AWFAmpTileSourceProviderDelegate
Objective-C
@protocol AWFAmpTileSourceProviderDelegate <NSObject>
Swift
protocol AWFAmpTileSourceProviderDelegate : NSObjectProtocol
The AWFAmpTileSourceProviderDelegate protocol defines a set of optional methods that can be used to receive messages from the provider when tile sources
should be added and/or removed from the weather map.
-
Tells the delegate that the tile source should be added to the weather map.
Declaration
Objective-C
- (void)ampSourceProvider:(nonnull AWFAmpTileSourceProvider *)provider needsSourceAddedToMap:(nonnull AWFTileSource *)source;Swift
optional func ampSourceProvider(_ provider: AWFAmpTileSourceProvider, needsSourceAddedToMap source: Any!)Parameters
providerThe provider requesting the addition.
sourceThe source that should be added to the map.
-
Tells the delegate that the tile source should be removed from the weather map.
Declaration
Objective-C
- (void)ampSourceProvider:(nonnull AWFAmpTileSourceProvider *)provider needsSourceRemovedFromMap:(nonnull AWFTileSource *)source;Swift
optional func ampSourceProvider(_ provider: AWFAmpTileSourceProvider, needsSourceRemovedFromMap source: Any!)Parameters
providerThe provider requesting the removal.
sourceThe source that should be removed from the map.
View on GitHub
AWFAmpTileSourceProviderDelegate Protocol Reference