AggregatedFeed
public final class AggregatedFeed : Feed
AggregatedFeed
are good for consuming activities in an “aggregated”-like manner. You cannot follow an aggregated feed,
but you may on occasion want to add activities to one.
-
Receive an aggregated feed activities type of
Activity
.Declaration
Swift
@discardableResult public func get(enrich: Bool = true, pagination: Pagination = .none, includeReactions reactionsOptions: FeedReactionsOptions = [], completion: @escaping GroupCompletion<Activity, Group<Activity>>) -> Cancellable
Parameters
enrich
when using collections, you can request to enrich activities to include them.
pagination
a pagination options.
reactionsOptions
options to include reactions to activities. Check optionsin docs for
FeedReactionsOptions
completion
a completion handler with a group of the
Activity
type.Return Value
an object to cancel the request.
-
Receive an aggregated feed activities with a custom activity type.
Declaration
Swift
@discardableResult public func get<T: ActivityProtocol>(typeOf: T.Type, enrich: Bool = true, pagination: Pagination = .none, includeReactions reactionsOptions: FeedReactionsOptions = [], completion: @escaping GroupCompletion<T, Group<T>>) -> Cancellable
Parameters
typeOf
a type of custom activities that conformed to
ActivityProtocol
.enrich
when using collections, you can request to enrich activities to include them.
pagination
a pagination options.
reactionsOptions
options to include reactions to activities. Check optionsin docs for
FeedReactionsOptions
completion
a completion handler with a group with a custom activity type.
Return Value
an object to cancel the request.