initiateOnDeviceConversionMeasurementWithHashedEmailAddress method
Future<void>
initiateOnDeviceConversionMeasurementWithHashedEmailAddress(
- String hashedEmailAddress
Initiates on-device conversion measurement given a sha256-hashed, UTF8 encoded, user email address. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op.
Only available on iOS.
Implementation
Future<void> initiateOnDeviceConversionMeasurementWithHashedEmailAddress(
String hashedEmailAddress,
) async {
if (defaultTargetPlatform != TargetPlatform.iOS) {
throw UnimplementedError(
'initiateOnDeviceConversionMeasurementWithHashedEmailAddress() is only supported on iOS.',
);
}
await _delegate.initiateOnDeviceConversionMeasurement(
hashedEmailAddress: hashedEmailAddress,
);
}