Package-level declarations

Types

Link copied to clipboard
data class AudioOnlyCallControlsContentParams(val isMicrophoneEnabled: Boolean, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class AudioOnlyCallDetailsContentParams(val remoteParticipants: List<ParticipantState>, val topPadding: Dp, val duration: String = "")
Link copied to clipboard
data class CallAppBarCenterContentParams(val call: Call, val title: String? = null)
Link copied to clipboard
data class CallAppBarLeadingContentParams(val call: Call, val onBackPressed: () -> Unit = {})
Link copied to clipboard
data class CallAppBarParams(val call: Call, val modifier: Modifier = Modifier, val onBackPressed: () -> Unit = {}, val onCallAction: (CallAction) -> Unit = {}, val title: String? = null)
Link copied to clipboard
data class CallAppBarTrailingContentParams(val call: Call, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class CallContentVideoContentParams(val call: Call, val layoutType: LayoutType = LayoutType.DYNAMIC, val style: VideoRendererStyle = RegularVideoRendererStyle(), val videoRenderer: @Composable (modifier: Modifier, call: Call, participant: ParticipantState, style: VideoRendererStyle) -> Unit = { videoModifier, videoCall, videoParticipant, videoStyle -> VideoTheme.componentFactory.ParticipantVideo( params = ParticipantVideoParams( call = videoCall, participant = videoParticipant, modifier = videoModifier, style = videoStyle, ), ) }, val floatingVideoRenderer: @Composable BoxScope.(call: Call, IntSize) -> Unit? = null)
Link copied to clipboard
data class CallLobbyControlsContentParams(val call: Call, val isCameraEnabled: Boolean, val isMicrophoneEnabled: Boolean, val modifier: Modifier = Modifier, val onCallAction: (CallAction) -> Unit? = null)
Link copied to clipboard
data class CallLobbyOnRenderedContentParams(val call: Call, val video: ParticipantState.Video, val onRendered: (View) -> Unit = {})
Link copied to clipboard
data class CallLobbyParticipantLabelContentParams(val user: User, val isMicrophoneEnabled: Boolean, val labelPosition: Alignment = Alignment.BottomStart)
Link copied to clipboard
data class ControlActionsParams(val call: Call, val modifier: Modifier = Modifier, val onCallAction: (CallAction) -> Unit? = null, val actions: List<@Composable () -> Unit>? = null)
Link copied to clipboard
data class IncomingCallContentParams(val call: Call, val modifier: Modifier = Modifier, val isVideoType: Boolean = true, val isShowingHeader: Boolean = true, val backgroundContent: @Composable BoxScope.() -> Unit? = null, val headerContent: @Composable ColumnScope.() -> Unit? = null, val detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit? = null, val controlsContent: @Composable BoxScope.() -> Unit? = null, val onBackPressed: () -> Unit = {}, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class IncomingCallControlsContentParams(val isCameraEnabled: Boolean, val isMicrophoneEnabled: Boolean? = null, val isVideoCall: Boolean = true, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class IncomingCallDetailsContentParams(val participants: List<MemberState>, val topPadding: Dp, val isVideoType: Boolean = true)
Link copied to clipboard
data class OutgoingCallContentParams(val call: Call, val modifier: Modifier = Modifier, val isVideoType: Boolean = true, val isShowingHeader: Boolean = true, val backgroundContent: @Composable BoxScope.() -> Unit? = null, val headerContent: @Composable ColumnScope.() -> Unit? = null, val detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit? = null, val controlsContent: @Composable BoxScope.() -> Unit? = null, val onBackPressed: () -> Unit = {}, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class OutgoingCallControlsContentParams(val isCameraEnabled: Boolean, val isMicrophoneEnabled: Boolean, val isVideoCall: Boolean = true, val onCallAction: (CallAction) -> Unit = {})
Link copied to clipboard
data class OutgoingCallDetailsContentParams(val participants: List<MemberState>, val topPadding: Dp, val isVideoType: Boolean = true)
data class ParticipantLabelSoundIndicatorContentParams(val isSpeaking: Boolean, val isAudioEnabled: Boolean, val audioLevel: Float = 0.0f, val modifier: Modifier = Modifier)
Link copied to clipboard
data class ParticipantVideoLabelContentParams(val call: Call, val participant: ParticipantState, val labelPosition: Alignment = Alignment.BottomStart)
Link copied to clipboard
data class ParticipantVideoParams(val call: Call, val participant: ParticipantState, val modifier: Modifier = Modifier, val style: VideoRendererStyle = RegularVideoRendererStyle(), val scalingType: VideoScalingType = VideoScalingType.SCALE_ASPECT_FILL, val mirrorMode: MirrorMode = MirrorMode.AUTO)
Link copied to clipboard
data class ParticipantVideoReactionContentParams(val participant: ParticipantState, val style: VideoRendererStyle = RegularVideoRendererStyle())
Link copied to clipboard
data class StreamColors(val brandPrimary: Color, val brandPrimaryLt: Color, val brandPrimaryDk: Color, val brandSecondary: Color, val brandSecondaryTransparent: Color, val brandCyan: Color, val brandGreen: Color, val brandYellow: Color, val brandRed: Color, val brandRedLt: Color, val brandRedDk: Color, val brandMaroon: Color, val brandViolet: Color, val basePrimary: Color, val baseSecondary: Color, val baseTertiary: Color, val baseQuaternary: Color, val baseQuinary: Color, val baseSenary: Color, val baseSheetPrimary: Color, val baseSheetSecondary: Color, val baseSheetTertiary: Color, val baseSheetQuarternary: Color, val buttonPrimaryDefault: Color, val buttonPrimaryPressed: Color, val buttonPrimaryDisabled: Color, val buttonBrandDefault: Color, val buttonBrandPressed: Color, val buttonBrandDisabled: Color, val buttonAlertDefault: Color, val buttonAlertPressed: Color, val buttonAlertDisabled: Color, val iconDefault: Color, val iconPressed: Color, val iconActive: Color, val iconAlert: Color, val iconDisabled: Color, val alertSuccess: Color, val alertCaution: Color, val alertWarning: Color)
Link copied to clipboard
data class StreamDimens(val genericMax: Dp, val generic3xl: Dp, val genericXxl: Dp, val genericXl: Dp, val genericL: Dp, val genericM: Dp, val genericS: Dp, val genericXs: Dp, val genericXXs: Dp, val roundnessXl: Dp, val roundnessL: Dp, val roundnessM: Dp, val roundnessS: Dp, val spacingXl: Dp, val spacingL: Dp, val spacingM: Dp, val spacingS: Dp, val spacingXs: Dp, val spacingXXs: Dp, val componentHeightL: Dp, val componentHeightM: Dp, val componentHeightS: Dp, val componentPaddingTop: Dp, val componentPaddingStart: Dp, val componentPaddingBottom: Dp, val componentPaddingEnd: Dp, val componentPaddingFixed: Dp, val textSizeXxl: TextUnit, val textSizeXl: TextUnit, val textSizeL: TextUnit, val textSizeM: TextUnit, val textSizeS: TextUnit, val textSizeXs: TextUnit, val lineHeightXxl: TextUnit, val lineHeightXl: TextUnit, val lineHeightL: TextUnit, val lineHeightM: TextUnit, val lineHeightS: TextUnit, val lineHeightXs: TextUnit)
Link copied to clipboard

A modified version of the default RippleConfiguration from MaterialTheme which works in case the MaterialTheme is not initialized.

Link copied to clipboard
data class StreamShapes(val circle: Shape, val square: Shape, val button: Shape, val input: Shape, val dialog: Shape, val sheet: Shape, val indicator: Shape, val container: Shape)

Contains all the shapes we provide for our components.

Link copied to clipboard
interface StreamTheme
Link copied to clipboard
data class StreamTypography(val titleL: TextStyle, val titleM: TextStyle, val titleS: TextStyle, val titleXs: TextStyle, val subtitleL: TextStyle, val subtitleM: TextStyle, val subtitleS: TextStyle, val bodyL: TextStyle, val bodyM: TextStyle, val bodyS: TextStyle, val labelL: TextStyle, val labelM: TextStyle, val labelS: TextStyle, val labelXS: TextStyle)

Contains all the typography we provide for our components.

Link copied to clipboard

A factory for creating the components used by the Video Compose SDK.

Link copied to clipboard

Contains ease-of-use accessors for different properties used to style and customize the app look and feel.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun CompoundComponentFactory(vararg keys: Any?, factory: (currentComponentFactory: VideoComponentFactory) -> VideoComponentFactory, content: @Composable () -> Unit)

Provides a VideoComponentFactory built on top of the current VideoComponentFactory to the given content, allowing overrides to be layered for a subtree.

Link copied to clipboard
fun VideoTheme(isInDarkMode: Boolean = isSystemInDarkTheme(), colors: StreamColors = StreamColors.defaultColors(), dimens: StreamDimens = StreamDimens.defaultDimens(), typography: StreamTypography = StreamTypography.defaultTypography(colors, dimens), shapes: StreamShapes = StreamShapes.defaultShapes(dimens), rippleConfiguration: StreamRippleConfiguration = StreamRippleConfiguration, reactionMapper: ReactionMapper = ReactionMapper.defaultReactionMapper(), allowUIAutomationTest: Boolean = true, styles: CompositeStyleProvider = CompositeStyleProvider(), componentFactory: VideoComponentFactory = DefaultVideoComponentFactory, content: @Composable () -> Unit)

Our theme that provides all the important properties for styling to the user.