CallParticipantState class
- Implemented types
-
- Annotations
-
Constructors
-
CallParticipantState({required String userId, required List<String> roles, required String name, @Deprecated('Use customData instead') required Map<String, Object?> custom, Map<String, Object?> customData = const {}, String? image, required String sessionId, required String trackIdPrefix, Map<SfuTrackType, TrackState> publishedTracks = const {}, Set<SfuTrackType> pausedTracks = const {}, bool isLocal = false, SfuConnectionQuality connectionQuality = SfuConnectionQuality.unspecified, bool isOnline = false, double audioLevel = 0, List<double>? audioLevels, bool isSpeaking = false, bool isDominantSpeaker = false, CallParticipantPin? pin, CallReaction? reaction, ViewportVisibility viewportVisibility = ViewportVisibility.unknown, ViewportVisibility screenShareViewportVisibility = ViewportVisibility.unknown, SfuParticipantSource? participantSource})
-
Methods
-
compareTo(CallParticipantState other)
→ int
-
Compares two participants.
override
-
copyWith({String? userId, List<String>? roles, String? name, Map<String, Object?>? custom, Map<String, Object?>? customData, String? image, String? sessionId, String? trackIdPrefix, Map<SfuTrackType, TrackState>? publishedTracks, Set<SfuTrackType>? pausedTracks, bool? isLocal, SfuConnectionQuality? connectionQuality, bool? isOnline, double? audioLevel, List<double>? audioLevels, bool? isSpeaking, bool? isDominantSpeaker, CallParticipantPin? pin, CallReaction? reaction, ViewportVisibility? viewportVisibility, ViewportVisibility? screenShareViewportVisibility, SfuParticipantSource? participantSource})
→ CallParticipantState
-
Returns a copy of this CallParticipantState with the given fields
replaced with the new values.
-
copyWithPin({required CallParticipantPin? participantPin})
→ CallParticipantState
-
-
copyWithReaction({required CallReaction? reaction})
→ CallParticipantState
-
Returns a copy of this CallParticipantState with the
reaction updated.
-
copyWithUpdatedAudioLevels({required double audioLevel, bool? isSpeaking})
→ CallParticipantState
-
Copies the current state and adds the latest
audioLevel to the last 10 audioLevels.
-
isTrackPaused(SfuTrackType trackType)
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
-
toUserInfo()
→ UserInfo
-