SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GetTrendingSearchesOptions
@objc
final class GetTrendingSearchesOptions
This class contains all the options necessary to request trending searches.
-
The client ID used to request trends if it is different from the
client ID specified in Info.plist.
Declaration
Swift
@objc
final var clientId: String?
-
The max number of trends returned. If not set, the api server will return all the trends
returned from the hot trends server.
Declaration
Swift
final var maxNumTrends: Int?
-
The max number of trends returned. If not set, the api server will return all the trends
returned from the hot trends server.
Declaration
Swift
@objc(maxNumTrends)
final var maxNumTrendsC: NSNumber? { get set }
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-07 UTC."],[[["`GetTrendingSearchesOptions` allows developers to customize requests for trending searches within an app."],["This class provides options to specify a client ID, potentially overriding the default from Info.plist."],["It allows setting a maximum number of trends to be returned, with the server returning all if unset."],["Both Swift (`maxNumTrends`) and Objective-C (`maxNumTrendsC`) APIs are available for setting the maximum number of trends."]]],["The `GetTrendingSearchesOptions` class provides options for requesting trending searches. Key actions involve setting the `clientId` (optional, if different from the Info.plist), and `maxNumTrends` (optional, to limit the number of trends returned). `maxNumTrendsC` serves the same purpose as `maxNumTrends`. If the maximum number of trends is not specified, the API returns all trends from the server.\n"]]