TopicsQuery

@objcMembers
@objc(GetSocialTopicsQuery)
public final class TopicsQuery : NSObject

Describe query to get topics.

  • Create a query to find a topic.

    Declaration

    Swift

    @objc(find:)
    public static func find(_ searchTerm: String) -> TopicsQuery

    Parameters

    searchTerm

    Search term.

    Return Value

    New TopicsQuery instance.

  • Create a query to get topics.

    Declaration

    Swift

    @objc(all)
    public static func all() -> TopicsQuery

    Return Value

    New TopicsQuery instance.

  • Filters topics followed by a specific user.

    Declaration

    Swift

    @objc(followedByUserWithId:)
    public func followedBy(_ id: UserId) -> TopicsQuery

    Return Value

    New TopicsQuery instance.

  • Filters trending topics and orders them by popularity.

    Declaration

    Swift

    @objc(onlyTrending:)
    public func onlyTrending(_ trending: Bool = true) -> TopicsQuery

    Parameters

    trending

    String

    Return Value

    New TopicsQuery instance.

  • Filters topics by the specified labels.

    • labels: [String]

    Declaration

    Swift

    @objc(withLabels:)
    public func withLabels(_ labels: [String]) -> TopicsQuery

    Return Value

    New TopicsQuery instance.

  • Filters topics by the specified properties.

    • properties: [String: String]

    Declaration

    Swift

    @objc(withProperties:)
    public func withProperties(_ properties: [String : String]) -> TopicsQuery

    Return Value

    New TopicsQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }