commit | author | age
|
8fa52d
|
1 |
#import <Foundation/Foundation.h> |
L |
2 |
|
|
3 |
#import "FIRAnalytics.h" |
|
4 |
|
|
5 |
NS_ASSUME_NONNULL_BEGIN |
|
6 |
|
|
7 |
API_UNAVAILABLE(macCatalyst, macos, tvos, watchos) |
|
8 |
@interface FIRAnalytics (OnDevice) |
|
9 |
|
|
10 |
/// Initiates on-device conversion measurement given a user email address. Requires dependency |
|
11 |
/// GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op. |
|
12 |
/// @param emailAddress User email address. Include a domain name for all email addresses |
|
13 |
/// (e.g. gmail.com or hotmail.co.jp). |
|
14 |
+ (void)initiateOnDeviceConversionMeasurementWithEmailAddress:(NSString *)emailAddress |
|
15 |
NS_SWIFT_NAME(initiateOnDeviceConversionMeasurement(emailAddress:)); |
|
16 |
|
|
17 |
/// Initiates on-device conversion measurement given a phone number in E.164 format. Requires |
|
18 |
/// dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op. |
|
19 |
/// @param phoneNumber User phone number. Must be in E.164 format, which means it must be |
|
20 |
/// limited to a maximum of 15 digits and must include a plus sign (+) prefix and country code |
|
21 |
/// with no dashes, parentheses, or spaces. |
|
22 |
+ (void)initiateOnDeviceConversionMeasurementWithPhoneNumber:(NSString *)phoneNumber |
|
23 |
NS_SWIFT_NAME(initiateOnDeviceConversionMeasurement(phoneNumber:)); |
|
24 |
|
|
25 |
/// Initiates on-device conversion measurement given a sha256-hashed user email address. Requires |
|
26 |
/// dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a no-op. |
|
27 |
/// @param hashedEmailAddress User email address as a UTF8-encoded string normalized and hashed |
|
28 |
/// according to the instructions at |
|
29 |
/// https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3. |
|
30 |
+ (void)initiateOnDeviceConversionMeasurementWithHashedEmailAddress:(NSData *)hashedEmailAddress |
|
31 |
NS_SWIFT_NAME(initiateOnDeviceConversionMeasurement(hashedEmailAddress:)); |
|
32 |
|
|
33 |
/// Initiates on-device conversion measurement given a sha256-hashed phone number in E.164 format. |
|
34 |
/// Requires dependency GoogleAppMeasurementOnDeviceConversion to be linked in, otherwise it is a |
|
35 |
/// no-op. |
|
36 |
/// @param hashedPhoneNumber UTF8-encoded user phone number in E.164 format and then hashed |
|
37 |
/// according to the instructions at |
|
38 |
/// https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3. |
|
39 |
+ (void)initiateOnDeviceConversionMeasurementWithHashedPhoneNumber:(NSData *)hashedPhoneNumber |
|
40 |
NS_SWIFT_NAME(initiateOnDeviceConversionMeasurement(hashedPhoneNumber:)); |
|
41 |
|
|
42 |
@end |
|
43 |
|
|
44 |
NS_ASSUME_NONNULL_END |