IHMSStatsStore
Hierarchy
-
IStore
<HMSStatsStore
>↳
IHMSStatsStore
Properties
destroy
• destroy: Destroy
Inherited from
IStore.destroy
getState
• getState: GetState
<HMSStatsStore
>
Get a part of store using a selector which is true at the current point of time.
Usage: store.getState(selectDominantSpeaker);
Inherited from
IStore.getState
setState
• setState: SetState
<HMSStatsStore
>
Inherited from
IStore.setState
subscribe
• subscribe: Subscribe
<HMSStatsStore
>
Subscribe to a part of store using selectors, whenever the subscribed part changes, the callback is called with both the latest and previous value of the changed part.
Usage:
const onSpeakerUpdate = (speaker, prevSpeaker) => { console.log("speaker changed from - ", prevSpeaker, ", to - ", speaker); } store.subscribe(onSpeakerUpdate, selectDominantSpeaker);
Inherited from
IStore.subscribe
Have a suggestion? Recommend changes ->