LiveKit Swift Client SDK Documentation

Class Observable​Participant

open class ObservableParticipant: ObservableObject  
%379 ObservableParticipant ObservableParticipant Equatable Equatable ObservableParticipant->Equatable Hashable Hashable ObservableParticipant->Hashable Identifiable Identifiable ObservableParticipant->Identifiable ParticipantDelegate ParticipantDelegate ObservableParticipant->ParticipantDelegate Loggable Loggable ObservableParticipant->Loggable ObservableObject ObservableObject ObservableParticipant->ObservableObject

Conforms To

Loggable

Allows to extend with custom log method which automatically captures current type (class name).

ParticipantDelegate

Delegate methods for a participant.

Equatable
Hashable
Identifiable
ObservableObject

Initializers

init(_:​)

public init(_ participant: Participant)  

Properties

id

public var id: String  

sid

public var sid: Sid  

identity

public var identity: String  

participant

public let participant: Participant

as​Local

public var asLocal: LocalParticipant?  

as​Remote

public var asRemote: RemoteParticipant?  

first​Camera​Publication

public var firstCameraPublication: TrackPublication?  

first​Screen​Share​Publication

public var firstScreenSharePublication: TrackPublication?  

first​Audio​Publication

public var firstAudioPublication: TrackPublication?  

first​Camera​Video​Track

public var firstCameraVideoTrack: VideoTrack?  

first​Screen​Share​Video​Track

public var firstScreenShareVideoTrack: VideoTrack?  

first​Audio​Track

public var firstAudioTrack: AudioTrack?  

first​Video​Available

public var firstVideoAvailable: Bool  

first​Audio​Available

public var firstAudioAvailable: Bool  

is​Speaking

public var isSpeaking: Bool  

joined​At

public var joinedAt: Date?  

connection​Quality

public var connectionQuality: ConnectionQuality  

Methods

participant(_:​did​Subscribe:​track:​)

public func participant(_ participant: RemoteParticipant,
                            didSubscribe trackPublication: RemoteTrackPublication,
                            track: Track)  

participant(_:​did​Unsubscribe:​track:​)

public func participant(_ participant: RemoteParticipant,
                            didUnsubscribe trackPublication: RemoteTrackPublication,
                            track: Track)  

participant(_:​did​Update:​permission:​)

public func participant(_ participant: RemoteParticipant,
                            didUpdate publication: RemoteTrackPublication,
                            permission allowed: Bool)  

local​Participant(_:​did​Publish:​)

public func localParticipant(_ participant: LocalParticipant,
                                 didPublish trackPublication: LocalTrackPublication)  

local​Participant(_:​did​Unpublish:​)

public func localParticipant(_ participant: LocalParticipant,
                                 didUnpublish trackPublication: LocalTrackPublication)  

participant(_:​did​Update:​muted:​)

public func participant(_ participant: Participant,
                            didUpdate trackPublication: TrackPublication,
                            muted: Bool)  

participant(_:​did​Update:​)

public func participant(_ participant: Participant, didUpdate speaking: Bool)  

participant(_:​did​Update:​)

public func participant(_ participant: Participant, didUpdate connectionQuality: ConnectionQuality)  

hash(into:​)

public func hash(into hasher: inout Hasher)  

Operators

==

public static func == (lhs: ObservableParticipant, rhs: ObservableParticipant) -> Bool