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
calloutThe callout controller that added the annotation.
annotationThe annotation that was added.
infoThe 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
calloutThe callout controller that removed the annotation.
annotationThe 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
calloutViewThe callout view that contains the accessory control.
senderThe UIControl that was tapped
View on GitHub
AWFMapCalloutDelegate Protocol Reference