LiveKit Swift Client SDK Documentation

Enumeration Track​Publish​State

public enum TrackPublishState  

A enum that represents the published state of a LocalTrackPublication.

%97 TrackPublishState TrackPublishState Equatable Equatable TrackPublishState->Equatable

Conforms To

Equatable

Enumeration Cases

not​Published

case notPublished(error: Error? = nil) 

Not published yet, has been unpublished, or an error occured while publishing or un-publishing. error wil be non-nil if an error occurred while publishing.

busy

case busy(isPublishing: Bool = true) 

In the process of publishing or unpublishing.

published

case published(LocalTrackPublication) 

Sucessfully published.

Properties

is​Published

public var isPublished: Bool  

Checks whether the state is TrackPublishState/published(_:) regardless of the error value.

is​Busy

public var isBusy: Bool  

Checks whether the state is TrackPublishState/busy(isPublishing:) regardless of the isPublishing value.

Operators

==

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