UI প্রতিনিধি

আমরা কাস্টমাইজেশন এবং পর্যবেক্ষণের উদ্দেশ্যে UI প্রতিনিধিদের একটি তালিকা প্রদান করি।

কর্ম বিজ্ঞপ্তি প্রতিনিধি ক্লিক করুন

UI ক্লিক অ্যাকশনে প্রতিক্রিয়া জানাতে আপনি একটি প্রতিনিধি উদাহরণে ( SearchContentClickNotificationDelegate ) পাস করতে পারেন৷

সুইফট

...
class PartnerSearchContentClickNotificationDelegate: SearchContentClickNotificationDelegate {
  func searchContentClicked(clickProperties: SearchContentClickProperties) {
    ...
  }
}
...
let delegate: PartnerSearchContentClickNotificationDelegate? = PartnerSearchContentClickNotificationDelegate()
...
let customizationOptions = SearchSuggestionsViewOptions()
customizationOptions.clickNotificationDelegate = delegate
...

উদ্দেশ্য-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;
...