Package-level declarations

Types

Link copied to clipboard
data class CallServiceConfig(val runCallServiceInForeground: Boolean = true, val audioUsage: Int = AudioAttributes.USAGE_VOICE_COMMUNICATION, val callServicePerType: Map<String, Class<*>> = mapOf( Pair(ANY_MARKER, CallService::class.java), ))

Configuration class for the call foreground service.

Functions

Link copied to clipboard

Returns a foreground service configuration appropriate for audio-only calls. Uses: FOREGROUND_SERVICE_TYPE_MICROPHONE.

Link copied to clipboard

Returns the default call foreground service configuration. Uses: FOREGROUND_SERVICE_TYPE_PHONE_CALL.

Link copied to clipboard

Returns a foreground service configuration appropriate for audio-only livestream hosts. Uses: FOREGROUND_SERVICE_TYPE_MICROPHONE.

Link copied to clipboard

Returns a foreground service configuration appropriate for livestream hosts. Uses: FOREGROUND_SERVICE_TYPE_CAMERA and FOREGROUND_SERVICE_TYPE_MICROPHONE.

Link copied to clipboard

Returns a foreground service configuration appropriate for livestream viewers. Uses: FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK.