QNConferencesRepository
@MainActor
public final class QNConferencesRepository
This class provides a method to create conferences and retrieve conference log.
-
Subscribe to receive new conferences entries
Declaration
Swift
@MainActor public lazy var newConferenceEntry: AnyPublisher<QNConferenceEntry, Never> { get set } -
Subscribe to receive new incoming conferences
Declaration
Swift
@MainActor public lazy var newConferenceEvent: AnyPublisher<(conference: QNConferenceRepository, extras: (caller: QNConferenceParticipant, constraints: [QNConferenceConstraint])), Never> { get set } -
Creates a new conference
Declaration
Swift
@MainActor public func createConference(recording: Bool, isAttendedTransferConference: Bool) async throws -> QNConferenceRepositoryParameters
recordingAllow record conference
isAttendedTransferConferenceRepresents if new conference is an attended transfer
Return Value
Observable with
QNConferenceRepository -
conference(named:Asynchronous) Create a conference or retrieve it if already exist
Declaration
Swift
@MainActor public func conference(named name: String) async throws -> QNConferenceRepositoryParameters
nameConference name
Return Value
Single with the
JanusConference -
Retrieve conferences entries related with user
Declaration
Swift
@MainActor public func conferencesEntries( before: Date? = nil, after: Date? = nil, limit: Int = 10, sortDescending: Bool = true ) async throws -> [QNConferenceEntry]Return Value
Observable with
JanusConferenceEntrylist. -
getParticipantById(_:Asynchronous) Get a QNConferenceParticipant object passing an ID
Declaration
Swift
@MainActor public func getParticipantById(_ id: String) async throws -> QNConferenceParticipantParameters
idParticipant ID
Return Value
Single with
QNConferenceParticipant -
existAnyConferenceWithInvitation(invitationId:Asynchronous) Check if the conference related to the specified invitationId is still pending.
Declaration
Swift
@MainActor public func existAnyConferenceWithInvitation(invitationId id: String) async throws -> BoolReturn Value
A Single with a value true if the conference is still pending and false otherwise.
-
Check if exist any conference with this participant.
Declaration
Swift
@MainActor public func existAnyConferenceWithParticipant(participantId: String) -> BoolReturn Value
Bool with value true if exist any conference with this participant.
-
transferAttendedConference(to:Asynchronous) Starts a new attended transfer and hold participant
Declaration
Swift
@MainActor public func transferAttendedConference(to: String) async throws -> QNConferenceRepositoryParameters
toUser id of the target user you want to transfer.
Return Value
Single with
QNConferenceRepository