Package-level declarations

Sorting functions for room participants.

Functions

Link copied to clipboard
fun compareAudioLevel(a: Participant, b: Participant): Int

A comparator to prefer loudest audio level.

Link copied to clipboard
fun compareIsSpeaking(a: Participant, b: Participant): Int

A comparator to prefer speaking participants first.

Link copied to clipboard
fun compareJoinedAt(a: Participant, b: Participant): Int

A comparator to prefer to latest joining participant

Link copied to clipboard
fun compareLastSpokenAt(a: Participant, b: Participant): Int

A comparator to prefer to newest speaker first

Link copied to clipboard

Prefers enabled over disabled.

Link copied to clipboard

Prefers non-placeholders over placeholders

Link copied to clipboard
fun sortParticipants(participants: List<Participant>): List<Participant>

Default sort for participants, it'll order participants by:

Link copied to clipboard

Default sort for a list of TrackReference. Orders by: