AI-generated Key Takeaways
-
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.
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 }