useParticipantCounts
useParticipantCounts(): Object
useParticipantCounts
is a convenience hook around the participantCounts()
method.
Return type
Returns an object with the following properties:
Name | Type | Description |
---|---|---|
present | number | Amount of participants where hasPresence is true |
hidden | number | Amount of participants where hasPresence is false |
Sample code
Related references
- useActiveParticipant()
- useActiveSpeakerId()
- useLocalParticipant()
- useLocalSessionId()
- useParticipantIds()
- useParticipantProperty()
- useParticipant()
- useWaitingParticipants()