Google आपकी पसंदीदा भाषा में कॉन्टेंट का अनुवाद करने के लिए, एआई टेक्नोलॉजी का इस्तेमाल करता है. एआई से मिले अनुवादों में गलतियां हो सकती हैं.
सबसे ज़्यादा खोजे गए चैनल
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ट्रेंडिंग खोजें पाना
ट्रेंडिंग खोजें पाने के लिए, ContextualSearchRuntime पर getTrendingSearches तरीके को कॉल करें. इस तरीके में,
GetTrendingSearchesOptions
का इस्तेमाल किया जाता है. इसमें, ट्रेंडिंग खोजों की ज़्यादा से ज़्यादा संख्या तय की जा सकती है.
SearchSuggestions ऑब्जेक्ट में, ऐक्सेस की जा सकने वाली कोई प्रॉपर्टी नहीं होती. इसमें ट्रेंडिंग खोजें दिखाने के लिए, ज़रूरी सभी जानकारी होती है. हालांकि, इसके अलावा यह अपारदर्शी होती है.
Swift, Swift Concurrency स्टाइल का इस्तेमाल करता है. वहीं, Objective-C, कॉलबैक फ़ंक्शन का इस्तेमाल करता है.
Objective-C
getTrendingSearchesWithOptions
[searchRuntime
getTrendingSearchesWithOptions:
[[GetTrendingSearchesOptions alloc] init]
completionHandler:^(SearchSuggestions *_Nullable suggestions,
NSError *_Nullable error) {
// error will be not null if there is an error.
// On success, suggestions will be non null.
}];
डिसप्ले
ट्रेंडिंग खोजों की चिप दिखाने के लिए, खोज के सुझावों की तरह ही तरीका
अपनाएं.
अगला लेख: खोज के नतीजे दिखानाarrow_forward
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2026-05-13 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2026-05-13 (UTC) को अपडेट किया गया."],[],["To retrieve trending searches, use the `getTrendingSearches` method of `ContextualSearchRuntime`, providing `GetTrendingSearchesOptions` to set the maximum results. Swift employs async/await, while Objective-C utilizes a completion handler. The `SearchSuggestions` object returned is opaque, solely intended for rendering. Display trending search chips similarly to search suggestions using the method described in another page. Both languages provide the necessary tools to retrieve and handle trending search data.\n"]]