register

fun register(callType: String, config: CallServiceConfig)

Registers a specific call configuration for a given call type.

Parameters

callType

The type of call (e.g., CallType.LiveStream.name).

config

The configuration to associate with the call type.


fun register(callType: String, configure: CallServiceConfigBuilder.() -> Unit)

Registers a call configuration using a builder pattern for a given call type.

Parameters

callType

The type of call (e.g., CallType.LiveStream.name)

configure

A lambda to configure the CallServiceConfig using CallServiceConfigBuilder.

Example:

registry.register(CallType.LiveStream.name) {
setServiceClass(LivestreamCallService::class.java)
setRunCallServiceInForeground(true)
}

Registers multiple call configurations in bulk.

Parameters

map

A map of CallType to CallServiceConfig representing configurations for multiple call types.

registry.register(
mapOf(
CallType.AudioCall.name to CallServiceConfig(),
CallType.Default.name to CallServiceConfig()
)
)