LabelsQuery

@objcMembers
@objc(GetSocialLabelsQuery)
public final class LabelsQuery : NSObject

Describe query to get labels.

  • Create a query to get labels.

    Declaration

    Swift

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

    Return Value

    New LabelsQuery instance.

  • Create query to find labels.

    Declaration

    Swift

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

    Parameters

    searchTerm

    Search term.

    Return Value

    New LabelsQuery instance.

  • Filters labels followed by a specific user.

    Declaration

    Swift

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

    Parameters

    id

    User id.

  • Filters trending labels and orders them by popularity.

    Declaration

    Swift

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

    Parameters

    trending

    Bool

    Return Value

    New LabelsQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }