@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
17 lines • 691 B
TypeScript
/**
* ```js
* import { StreamRepository } from '@amityco/ts-sdk-react-native'
* const streams = await StreamRepository.getStreams()
* ```
*
* Observe all mutations on a list of {@link Amity.Stream}s
*
* @param params for querying streams
* @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 streams
*
* @category Stream Live Collection
*/
export declare const getStreams: (params: Amity.StreamLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Stream>, config?: Amity.LiveCollectionConfig) => () => void;
//# sourceMappingURL=getStreams.d.ts.map