AWFMapCalloutDelegate
Objective-C
@protocol AWFMapCalloutDelegate <NSObject>
Swift
protocol AWFMapCalloutDelegate : NSObjectProtocol
The AWFMapCalloutDelegate
protocol defines a set of optional methods that you can use to receive messages related to changes to or interactions
with a map callout and it’s assocated callout view.
-
Tells the delegate the callout controller added an annotation to the map used for managing the callout view.
Declaration
Objective-C
- (void)callout:(nonnull AWFMapCallout *)callout didAddAnnotation:(nonnull id<AWFAnnotation>)annotation withInfo:(nonnull AWFMapCalloutInfo *)info;
Swift
optional func callout(_ callout: AWFMapCallout, didAdd annotation: AWFAnnotation, with info: AWFMapCalloutInfo)
Parameters
callout
The callout controller that added the annotation.
annotation
The annotation that was added.
info
The callout information object.
-
Tells the delegate the callout controller removed an annotation from the map used for managing the callout view.
Declaration
Objective-C
- (void)callout:(nonnull AWFMapCallout *)callout didRemoveAnnotation:(nonnull id<AWFAnnotation>)annotation;
Swift
optional func callout(_ callout: AWFMapCallout, didRemove annotation: AWFAnnotation)
Parameters
callout
The callout controller that removed the annotation.
annotation
The annotation that was removed.
-
Tells the delegate an accessory control was tapped on the map callout.
Declaration
Objective-C
- (void)calloutView:(nonnull AWFCalloutView *)calloutView accessoryControlWasTapped:(nonnull id)sender;
Swift
optional func calloutView(_ calloutView: AWFCalloutView, accessoryControlWasTapped sender: Any)
Parameters
calloutView
The callout view that contains the accessory control.
sender
The UIControl that was tapped