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
provider
The provider requesting the addition.
source
The 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
provider
The provider requesting the removal.
source
The source that should be removed from the map.