StartCallUseCase

class StartCallUseCase(callManager: Lazy<CallManager>, syncStateObserver: SyncStateObserver, kaliumConfigs: KaliumConfigs, callRepository: CallRepository, getCallConversationType: GetCallConversationTypeProvider, answerCall: AnswerCallUseCase, dispatchers: KaliumDispatcher = KaliumDispatcherImpl)

Attempts to start a call. Will wait for sync to finish or fail if it is pending, and return one Result.

Constructors

Link copied to clipboard
internal constructor(callManager: Lazy<CallManager>, syncStateObserver: SyncStateObserver, kaliumConfigs: KaliumConfigs, callRepository: CallRepository, getCallConversationType: GetCallConversationTypeProvider, answerCall: AnswerCallUseCase, dispatchers: KaliumDispatcher = KaliumDispatcherImpl)

Types

Link copied to clipboard
sealed interface Result

Functions

Link copied to clipboard
suspend operator fun invoke(conversationId: ConversationId, callType: CallType = CallType.AUDIO): StartCallUseCase.Result