initiateOnDeviceConversionMeasurementWithEmailAddress method

Future<void> initiateOnDeviceConversionMeasurementWithEmailAddress(
  1. String emailAddress
)
inherited

Initiates on-device conversion measurement given a user email address. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.

Only available on iOS.

Implementation

Future<void> initiateOnDeviceConversionMeasurementWithEmailAddress(
  String emailAddress,
) async {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    throw UnimplementedError(
      'initiateOnDeviceConversionMeasurementWithEmailAddress() is only supported on iOS.',
    );
  }
  await _delegate.initiateOnDeviceConversionMeasurement(
    emailAddress: emailAddress,
  );
}