UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

22 lines 897 B
/** * ```js * import { FeedRepository } from '@amityco/ts-sdk' * * let posts = [] * const unsub = FeedRepository.getGlobalFeed({ * dataTypes: ['video','image'], * resolveParent: true, * }, response => processResponse(response)) * ``` * * Observe all mutations on a list of {@link Amity.Post} for a given target object * * @param params.dataTypes array of data types for the posts * @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 getCustomRankingGlobalFeed: (params: Amity.CustomRankingGlobalFeedLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Post>, config?: Amity.LiveCollectionConfig) => Amity.Unsubscriber; //# sourceMappingURL=getCustomRankingGlobalFeed.d.ts.map