NotificationFeed
public final class NotificationFeed : Feed
The NotificationFeed type makes it easy to add notifications to your app. Notifications cannot be followed by other feeds,
but you can write directly to a Notification feed.
-
Receive a notification feed activities type of
Activity.Declaration
Swift
@discardableResult public func get(enrich: Bool = true, pagination: Pagination = .none, markOption: FeedMarkOption = .none, includeReactions reactionsOptions: FeedReactionsOptions = [], completion: @escaping GroupCompletion<Activity, NotificationGroup<Activity>>) -> CancellableParameters
enrichwhen using collections, you can request to enrich activities to include them.
paginationa pagination options.
markOptionmark options to update feed notifications as read/seen.
reactionsOptionsoptions to include reactions to activities. Check optionsin docs for
FeedReactionsOptionscompletiona completion handler with a notification group with the
Activitytype.Return Value
- a cancellable object to cancel the request.
-
Receive a notification feed activities with a custom activity type.
Declaration
Swift
@discardableResult public func get<T: ActivityProtocol>(typeOf: T.Type, enrich: Bool = true, pagination: Pagination = .none, markOption: FeedMarkOption = .none, includeReactions reactionsOptions: FeedReactionsOptions = [], completion: @escaping GroupCompletion<T, NotificationGroup<T>>) -> CancellableParameters
typeOfa type of custom activities that conformed to
ActivityProtocol.enrichwhen using collections, you can request to enrich activities to include them.
paginationa pagination options.
markOptionmark options to update feed notifications as read/seen.
reactionsOptionsoptions to include reactions to activities. Check optionsin docs for
FeedReactionsOptionscompletiona completion handler with a notification group with a custom activity type.
Return Value
- a cancellable object to cancel the request.
View on GitHub
NotificationFeed Class Reference