Package io.getstream.video.android.core
Class CallState
-
- All Implemented Interfaces:
public final class CallStateThe CallState class keeps all state for a call It's available on every call object
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<RealtimeConnection>connectionprivate final StateFlow<Boolean>isReconnectingprivate final CallStatsstatsprivate final StateFlow<List<ParticipantState>>participantsprivate final StateFlow<<Error class: unknown class>>participantCountsprivate final StateFlow<ParticipantState>meprivate final StateFlow<List<ParticipantState>>activeSpeakersprivate final StateFlow<List<ParticipantState>>remoteParticipantsprivate final StateFlow<ParticipantState>dominantSpeakerprivate final StateFlow<Map<String, OffsetDateTime>>pinnedParticipantsprivate final CoroutineScopescopeprivate final StateFlow<List<ParticipantState>>sortedParticipantsprivate final StateFlow<List<MemberState>>membersprivate final StateFlow<ScreenSharingSession>screenSharingSessionprivate final StateFlow<Boolean>speakingWhileMutedprivate final StateFlow<Boolean>recordingprivate final StateFlow<Set<String>>blockedUsersprivate final StateFlow<RingingState>ringingStateprivate final StateFlow<CallSettingsResponse>settingsprivate final StateFlow<List<OwnCapability>>ownCapabilitiesprivate final StateFlow<List<PermissionRequest>>permissionRequestsprivate final StateFlow<Map<String, List<String>>>capabilitiesByRoleprivate final StateFlow<Boolean>backstageprivate final StateFlow<EgressResponse>egressprivate final StateFlow<Boolean>broadcastingprivate final StateFlow<Boolean>transcribingprivate final StateFlow<Set<String>>acceptedByprivate final StateFlow<Set<String>>rejectedByprivate final StateFlow<CallSessionResponse>sessionprivate final StateFlow<OffsetDateTime>startsAtprivate final StateFlow<OffsetDateTime>updatedAtprivate final StateFlow<OffsetDateTime>createdAtprivate final StateFlow<List<String>>blockedUserIdsprivate final StateFlow<Map<String, Object>>customprivate final StateFlow<String>teamprivate final StateFlow<User>createdByprivate final StateFlow<CallIngressResponse>ingressprivate final StateFlow<OffsetDateTime>endedAtprivate final StateFlow<User>endedByUserprivate final StateFlow<List<ReactionResponse>>reactionsprivate final StateFlow<List<ErrorEvent>>errors
-
Method Summary
Modifier and Type Method Description final StateFlow<RealtimeConnection>getConnection()final StateFlow<Boolean>isReconnecting()final CallStatsgetStats()final StateFlow<List<ParticipantState>>getParticipants()Participants returns a list of participant state object. final StateFlow<<Error class: unknown class>>getParticipantCounts()final StateFlow<ParticipantState>getMe()Your own participant state final StateFlow<List<ParticipantState>>getActiveSpeakers()final StateFlow<List<ParticipantState>>getRemoteParticipants()participants other than yourself final StateFlow<ParticipantState>getDominantSpeaker()final StateFlow<Map<String, OffsetDateTime>>getPinnedParticipants()final CoroutineScopegetScope()final StateFlow<List<ParticipantState>>getSortedParticipants()final StateFlow<List<MemberState>>getMembers()final StateFlow<ScreenSharingSession>getScreenSharingSession()final StateFlow<Boolean>getSpeakingWhileMuted()final StateFlow<Boolean>getRecording()final StateFlow<Set<String>>getBlockedUsers()final StateFlow<RingingState>getRingingState()final StateFlow<CallSettingsResponse>getSettings()final StateFlow<List<OwnCapability>>getOwnCapabilities()final StateFlow<List<PermissionRequest>>getPermissionRequests()final StateFlow<Map<String, List<String>>>getCapabilitiesByRole()final StateFlow<Boolean>getBackstage()if we are in backstage mode or not final StateFlow<EgressResponse>getEgress()final StateFlow<Boolean>getBroadcasting()if the call is being broadcasted to HLS final StateFlow<Boolean>getTranscribing()final StateFlow<Set<String>>getAcceptedBy()final StateFlow<Set<String>>getRejectedBy()final StateFlow<CallSessionResponse>getSession()final StateFlow<OffsetDateTime>getStartsAt()final StateFlow<OffsetDateTime>getUpdatedAt()updatedAt final StateFlow<OffsetDateTime>getCreatedAt()final StateFlow<List<String>>getBlockedUserIds()final StateFlow<Map<String, Object>>getCustom()final StateFlow<String>getTeam()final StateFlow<User>getCreatedBy()final StateFlow<CallIngressResponse>getIngress()final StateFlow<OffsetDateTime>getEndedAt()final StateFlow<User>getEndedByUser()final StateFlow<List<ReactionResponse>>getReactions()final StateFlow<List<ErrorEvent>>getErrors()final StateFlow<Boolean>hasPermission(String permission)Check if you have permissions to do things like share your audio, video, screen etc final UnithandleEvent(VideoEvent event)final UnitmarkSpeakingAsMuted()final UnitupsertParticipants(List<ParticipantState> participants)final ParticipantStategetOrCreateParticipant(String sessionId, String userId, User user, Boolean updateFlow)final ParticipantStategetParticipantBySessionId(String sessionId)final UnitupdateParticipant(ParticipantState participant)final UnitclearParticipants()final UnitupdateFromResponse(CallResponse response)final UnitupdateFromResponse(GetOrCreateCallResponse response)final UnitupdateFromResponse(UpdateCallResponse response)final UnitupdateFromResponse(GetCallResponse response)final UnitupdateFromResponse(JoinCallResponse response)final UnitupdateFromResponse(CallStateResponseFields callData)final UnitupdateFromResponse(QueryMembersResponse it)final UnitupdateFromResponse(StopLiveResponse result)final UnitupdateFromResponse(GoLiveResponse result)final MemberStategetMember(String userId)final Unitpin(String sessionId)final Unitunpin(String sessionId)-
-
Constructor Detail
-
CallState
CallState(Call call, User user)
-
-
Method Detail
-
getConnection
final StateFlow<RealtimeConnection> getConnection()
-
isReconnecting
final StateFlow<Boolean> isReconnecting()
-
getParticipants
final StateFlow<List<ParticipantState>> getParticipants()
Participants returns a list of participant state object. @see ParticipantState
-
getParticipantCounts
final StateFlow<<Error class: unknown class>> getParticipantCounts()
-
getMe
final StateFlow<ParticipantState> getMe()
Your own participant state
-
getActiveSpeakers
final StateFlow<List<ParticipantState>> getActiveSpeakers()
-
getRemoteParticipants
final StateFlow<List<ParticipantState>> getRemoteParticipants()
participants other than yourself
-
getDominantSpeaker
final StateFlow<ParticipantState> getDominantSpeaker()
-
getPinnedParticipants
final StateFlow<Map<String, OffsetDateTime>> getPinnedParticipants()
-
getScope
final CoroutineScope getScope()
-
getSortedParticipants
final StateFlow<List<ParticipantState>> getSortedParticipants()
-
getMembers
final StateFlow<List<MemberState>> getMembers()
-
getScreenSharingSession
final StateFlow<ScreenSharingSession> getScreenSharingSession()
-
getSpeakingWhileMuted
final StateFlow<Boolean> getSpeakingWhileMuted()
-
getRecording
final StateFlow<Boolean> getRecording()
-
getBlockedUsers
final StateFlow<Set<String>> getBlockedUsers()
-
getRingingState
final StateFlow<RingingState> getRingingState()
-
getSettings
final StateFlow<CallSettingsResponse> getSettings()
-
getOwnCapabilities
final StateFlow<List<OwnCapability>> getOwnCapabilities()
-
getPermissionRequests
final StateFlow<List<PermissionRequest>> getPermissionRequests()
-
getCapabilitiesByRole
final StateFlow<Map<String, List<String>>> getCapabilitiesByRole()
-
getBackstage
final StateFlow<Boolean> getBackstage()
if we are in backstage mode or not
-
getEgress
final StateFlow<EgressResponse> getEgress()
-
getBroadcasting
final StateFlow<Boolean> getBroadcasting()
if the call is being broadcasted to HLS
-
getTranscribing
final StateFlow<Boolean> getTranscribing()
-
getAcceptedBy
final StateFlow<Set<String>> getAcceptedBy()
-
getRejectedBy
final StateFlow<Set<String>> getRejectedBy()
-
getSession
final StateFlow<CallSessionResponse> getSession()
-
getStartsAt
final StateFlow<OffsetDateTime> getStartsAt()
-
getUpdatedAt
final StateFlow<OffsetDateTime> getUpdatedAt()
updatedAt
-
getCreatedAt
final StateFlow<OffsetDateTime> getCreatedAt()
-
getBlockedUserIds
final StateFlow<List<String>> getBlockedUserIds()
-
getCreatedBy
final StateFlow<User> getCreatedBy()
-
getIngress
final StateFlow<CallIngressResponse> getIngress()
-
getEndedAt
final StateFlow<OffsetDateTime> getEndedAt()
-
getEndedByUser
final StateFlow<User> getEndedByUser()
-
getReactions
final StateFlow<List<ReactionResponse>> getReactions()
-
getErrors
final StateFlow<List<ErrorEvent>> getErrors()
-
hasPermission
final StateFlow<Boolean> hasPermission(String permission)
Check if you have permissions to do things like share your audio, video, screen etc
-
handleEvent
final Unit handleEvent(VideoEvent event)
-
markSpeakingAsMuted
final Unit markSpeakingAsMuted()
-
upsertParticipants
final Unit upsertParticipants(List<ParticipantState> participants)
-
getOrCreateParticipant
final ParticipantState getOrCreateParticipant(String sessionId, String userId, User user, Boolean updateFlow)
-
getParticipantBySessionId
final ParticipantState getParticipantBySessionId(String sessionId)
-
updateParticipant
final Unit updateParticipant(ParticipantState participant)
-
clearParticipants
final Unit clearParticipants()
-
updateFromResponse
final Unit updateFromResponse(CallResponse response)
-
updateFromResponse
final Unit updateFromResponse(GetOrCreateCallResponse response)
-
updateFromResponse
final Unit updateFromResponse(UpdateCallResponse response)
-
updateFromResponse
final Unit updateFromResponse(GetCallResponse response)
-
updateFromResponse
final Unit updateFromResponse(JoinCallResponse response)
-
updateFromResponse
final Unit updateFromResponse(CallStateResponseFields callData)
-
updateFromResponse
final Unit updateFromResponse(QueryMembersResponse it)
-
updateFromResponse
final Unit updateFromResponse(StopLiveResponse result)
-
updateFromResponse
final Unit updateFromResponse(GoLiveResponse result)
-
getMember
final MemberState getMember(String userId)
-
-
-
-