mbpCardViewDidTapAttribution method

  1. @override
dynamic mbpCardViewDidTapAttribution(
  1. MapboxAdMBPCardView view,
  2. MapboxAd mapboxAd
)
override

Called when header attribution button is tapped.

Implementation

@override
mbpCardViewDidTapAttribution(
    MapboxAdMBPCardView view, MapboxAd mapboxAd) async {
  final zoom = await map?.zoom;
  if (zoom != null) {
    pme?.sendFeedback(id: mapboxAd.id, zoom: zoom, type: 'attribution');
  }
  final attributionView =
      MapboxAdAttributionView(adManager: this, mapboxAd: mapboxAd);
  callback?.onAdShowAttribution(attributionView);
}