@@ -291,6 +291,10 @@ class ParameterCopy : private firebase::analytics::Parameter {
291291 }
292292%}
293293
294+ // Mark these as internal, so that we can do the conversion of types manually
295+ %rename(InitiateOnDeviceConversionMeasurementWithHashedEmailAddressInternal) firebase::analytics::InitiateOnDeviceConversionMeasurementWithHashedEmailAddress;
296+ %rename(InitiateOnDeviceConversionMeasurementWithHashedPhoneNumberInternal) firebase::analytics::InitiateOnDeviceConversionMeasurementWithHashedPhoneNumber;
297+
294298// GetSessionId returns Future<long long> in SWIG.
295299%include " app/src/swig/future.i"
296300%SWIG_FUTURE(Future_LongLong, long , internal, long long , FirebaseException)
@@ -337,6 +341,26 @@ namespace analytics {
337341 }
338342 SetConsentInternal (consentSettingsMap);
339343 }
344+
345+ // / Initiates on-device conversion measurement given a sha256-hashed user email address.
346+ // / Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is
347+ // / a no-op.
348+ // / @param hashedEmailAddress User email address as a UTF8-encoded string normalized and
349+ // / hashed according to the instructions at
350+ // / https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3.
351+ public static void InitiateOnDeviceConversionMeasurementWithHashedEmailAddress (byte[] hashedEmailAddress) {
352+ InitiateOnDeviceConversionMeasurementWithHashedEmailAddressInternal (new CharVector (hashedEmailAddress));
353+ }
354+
355+ // / Initiates on-device conversion measurement given a sha256-hashed phone number in E.164
356+ // / format. Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in,
357+ // / otherwise it is a no-op.
358+ // / @param hashedPhoneNumber UTF8-encoded user phone number in E.164 format and then hashed
359+ // / according to the instructions at
360+ // / https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3.
361+ public static void InitiateOnDeviceConversionMeasurementWithHashedPhoneNumber (byte[] hashedPhoneNumber) {
362+ InitiateOnDeviceConversionMeasurementWithHashedPhoneNumberInternal (new CharVector (hashedPhoneNumber));
363+ }
340364%}
341365
342366} // namespace analytics
0 commit comments