@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
23 lines • 911 B
TypeScript
/**
* ```js
* import { FeedRepository } from '@amityco/ts-sdk'
*
* let posts = []
* const unsubscribe = FeedRepository.getUserFeed({
* userId: string,
* feedSources: ['user', 'community'],
* }, response => response => processResponse(response))
* ```
*
* Observe all mutations on a list of {@link Amity.Post} for a given user and feedSources
*
* @param params.userId the ID of the user
* @param params.feedSources the sources of the feed
* @param callback the function to call when new data are available
* @param config
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
*
* @category Posts Live Collection
*/
export declare const getUserFeed: (params: Amity.UserFeedLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Post>, config?: Amity.LiveCollectionConfig) => Amity.Unsubscriber;
//# sourceMappingURL=getUserFeed.d.ts.map