हम यूज़र इंटरफ़ेस (यूआई) के उन उपयोगकर्ताओं की सूची उपलब्ध कराते हैं जिन्हें आपने अपने हिसाब से बनाया है और जिन्हें मॉनिटर किया जा रहा है.
क्लिक ऐक्शन की सूचना देने वाले एजेंट
यूज़र इंटरफ़ेस (यूआई) पर क्लिक करने की कार्रवाई का जवाब देने के लिए, डिलीगेट इंस्टेंस (SearchContentClickNotificationDelegate
) पास किया जा सकता है.
Swift
...
class PartnerSearchContentClickNotificationDelegate: SearchContentClickNotificationDelegate {
func searchContentClicked(clickProperties: SearchContentClickProperties) {
...
}
}
...
let delegate: PartnerSearchContentClickNotificationDelegate? = PartnerSearchContentClickNotificationDelegate()
...
let customizationOptions = SearchSuggestionsViewOptions()
customizationOptions.clickNotificationDelegate = delegate
...
Objective-C
/// In the .h header file.
#import "googlemac/iPhone/Shared/SearchInApps/SDK/SourcesLib-Swift.h"
...
@interface PartnerSearchContentClickNotificationDelegate: NSObject<SearchContentClickNotificationDelegate>
@end
/// In the .m file.
#import "googlemac/iPhone/Shared/SearchInApps/SDK/SourcesLib-Swift.h"
...
@interface PartnerSearchContentClickNotificationDelegate () <SearchContentClickNotificationDelegate>
@end
@implementation PartnerSearchContentClickNotificationDelegate
- (void)searchContentClickedWithClickProperties: (SearchContentClickProperties *) properties
{
...
}
@end
...
PartnerSearchContentClickNotificationDelegate *_partnerSearchContentClickNotificationDelegate = [[PartnerSearchContentClickNotificationDelegate alloc] init];
...
SearchSuggestionsViewOptions *customizationOptions = [[SearchSuggestionsViewOptions alloc] init];
customizationOptions.clickNotificationDelegate = _partnerSearchContentClickNotificationDelegate;
...