UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

22 lines 959 B
/** * ```js * import { PostRepository } from '@amityco/ts-sdk-react-native' * * let posts = [] * const unsub = PostRepository.getCommunityLiveRoomPosts({ * targetId: 'communityId', * }, response => merge(posts, response.data)) * ``` * * Observe all mutations on a list of {@link Amity.Post} for live rooms in a specific community * * @param params.targetId the ID of the community * @param params.limit optional limit for the number of posts to fetch * @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 posts * * @category Posts Live Collection */ export declare const getCommunityLiveRoomPosts: (params: Amity.CommunityLiveRoomPostLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Post>, config?: Amity.LiveCollectionConfig) => Amity.Unsubscriber; //# sourceMappingURL=getCommunityLiveRoomPosts.d.ts.map