ActivitiesQuery

@objcMembers
@objc(GetSocialActivitiesQuery)
public final class ActivitiesQuery : NSObject

Describe query to get activities.

  • Declaration

    Swift

    public internal(set) var trending: Bool { get }
  • Declaration

    Swift

    public internal(set) var byUser: UserId? { get }
  • tag

    Declaration

    Swift

    public internal(set) var tag: String? { get }
  • Declaration

    Swift

    public internal(set) var pollStatus: PollStatus { get }
  • Declaration

    Swift

    public internal(set) var labels: [String]? { get }
  • Declaration

    Swift

    public internal(set) var mentions: [UserId]? { get }
  • Declaration

    Swift

    public internal(set) var properties: [String : String]? { get }
  • Declaration

    Swift

    public internal(set) var searchTerm: String? { get }
  • Declaration

    Swift

    public internal(set) var reactions: [String]? { get }
  • Declaration

    Swift

    public internal(set) var reactionGroup: String? { get }
  • Create a query to get activities for a specific user.

    Declaration

    Swift

    @objc(feedOfUserWithId:)
    public static func feedOf(_ id: UserId) -> ActivitiesQuery

    Parameters

    id

    User id.

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get activities in a specific topic.

    Declaration

    Swift

    @objc(inTopicWithId:)
    public static func inTopic(_ id: String) -> ActivitiesQuery

    Parameters

    id

    Topic id.

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get activities in a specific group.

    Declaration

    Swift

    @objc(inGroupWithId:)
    public static func inGroup(_ id: String) -> ActivitiesQuery

    Parameters

    id

    Group id.

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get activities from all topics.

    Declaration

    Swift

    @objc(inAllTopics)
    public static func inAllTopics() -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get activities from all groups.

    Declaration

    Swift

    @objc(inAllGroups)
    public static func inAllGroups() -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get activities in current user timeline.

    Declaration

    Swift

    public static func timeline() -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get all activities from every target.

    Declaration

    Swift

    public static func everywhere() -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get all bookmarked activities

    Declaration

    Swift

    @objc(bookmarkedActivities)
    public static func bookmarkedActivities() -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get all reacted activities

    Declaration

    Swift

    @objc(reactedActivities:)
    public static func reactedActivities(_ reactions: [String]?) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Create a query to get all voted activities

    Declaration

    Swift

    @objc(votedActivities:)
    public static func votedActivities(_ options: [String]?) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Filter activities by author.

    Declaration

    Swift

    @objc(byUserWithId:)
    public func byUser(_ id: UserId) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Filter activities by a tag.

    Declaration

    Swift

    @objc(withTag:)
    public func withTag(_ tag: String) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Filter activities by poll status.

    Declaration

    Swift

    @objc(withPollStatus:)
    public func withPollStatus(_ status: PollStatus) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Filters trending activities and orders them by popularity.

    Declaration

    Swift

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

    Parameters

    trending

    Bool

    Return Value

    New ActivitiesQuery instance.

  • Filters activities by the specified text.

    • text: String

    Declaration

    Swift

    @objc(withText:)
    public func withText(_ text: String) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Filters activities by the specified labels.

    • labels: [String]

    Declaration

    Swift

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

    Return Value

    New ActivitiesQuery instance.

  • Filters activities by the specified properties.

    • properties: [String: String]

    Declaration

    Swift

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

    Return Value

    New ActivitiesQuery instance.

  • Filters activities by the specified mentions.

    • mentions: [UserId]

    Declaration

    Swift

    @objc(withMentions:)
    public func withMentions(_ mentions: [UserId]) -> ActivitiesQuery

    Return Value

    New ActivitiesQuery instance.

  • Converts query to post target.

    Declaration

    Swift

    public func asPostTarget() -> PostActivityTarget?

    Return Value

    PostActivityTarget instance.

  • Converts query to announcements query.

    Declaration

    Swift

    public func asAnnouncementsQuery() -> AnnouncementsQuery?

    Return Value

    AnnouncementsQuery instance.

  • Query to get comments for by a specific user.

    Declaration

    Swift

    @objc(commentsToActivityWithId:)
    public static func commentsToActivity(_ id: String) -> ActivitiesQuery

    Parameters

    id

    Activity id.

    Return Value

    New ActivitiesQuery instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }
  • Declaration

    Swift

    @objc(copyWithZone:)
    public func copy(with zone: NSZone? = nil) -> Any