setAttribution method

Future<void> setAttribution(
  1. AttributionProvider provider,
  2. Map<String, Object?> data
)

Forward the attribution your MMP produced. Call it from the MMP's conversion / attribution callback, passing the callback object as-is. The server record is write-once: a call after the install is already attributed changes nothing. On both platforms this throws RovenueException only with RovenueErrorKind.invalidArgument (unknown provider, or data not serialisable); network and server failures are logged, not thrown.

Implementation

Future<void> setAttribution(AttributionProvider provider, Map<String, Object?> data) =>
    _platform.setAttribution(provider.name, data);