Package 

Interface SortPreset


  • 
    public interface SortPreset
    
                        

    Named sort presets controlling participant ordering.

    Selected via CallState.setSortPreset(...). For ad-hoc comparators that don't fit a preset, use the existing CallState.updateParticipantSortingOrder(Comparator) escape hatch.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class SortPreset.Default

      The default grid/continuous-scroll preset.

      Order: screen-sharing → pinned (local server recency) → ifInvisibleOrUnknown(dominantSpeaker → speaking → raised-hand → ingress-source priority → publishing video → publishing audio).

      UNKNOWN-as-invisible matters for Android continuous scroll: off-screen tiles that haven't rendered yet still get ordered by activity, so they're in the right place when they roll into view.

      public class SortPreset.SpeakerLayout

      Speaker-focused layout preset.

      Like Default, but dominant speaker sits outside the visibility guard so the spotlight always reflects who's talking, regardless of viewport state.

      Order: screen-sharing → pinned → dominant speaker → ifInvisible(speaking → raised-hand → ingress-source → publishing video → publishing audio).

      public class SortPreset.LivestreamOrAudioRoom

      Livestream / audio-room preset. Role-aware: admins, hosts and speakers sort ahead of regular participants among those with the same activity profile.

      Order: ifInvisibleOrUnknown(dominantSpeaker → speaking → raised-hand → ingress-source → publishing video → publishing audio) → role priority.

      Matches iOS livestreamOrAudioRoomSortPreset and React livestreamOrAudioRoomSortPreset.