@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
21 lines • 716 B
TypeScript
/**
* ```js
* import { EventRepository } from '@amityco/ts-sdk-react-native';
*
* let event;
*
* const unsubscribe = EventRepository.getEvent(eventId, response => {
* event = response.data;
* });
* ```
*
* Observe all mutation on a given {@link Amity.Event}
*
* @param eventId the ID of the event to observe
* @param callback the function to call when new snapshot of event are available
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the event
*
* @category Event Live Object
*/
export declare const getEvent: (eventId: Amity.Event['eventId'], callback: Amity.LiveObjectCallback<Amity.Event>) => Amity.Unsubscriber;
//# sourceMappingURL=getEvent.d.ts.map