register
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.
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)
}Content copied to clipboard
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()
)
)Content copied to clipboard