StreamCallActivityComposeDelegate

A default implementation of the compose delegate for the call activity. Can be extended. Provides functions with the context of the activity.

Override the methods of this delegate to replace whole screens (e.g. the video call or the ringing screens). To customize individual components inside those screens, override componentFactory instead; the screens rendered by this delegate resolve their components through that factory.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The VideoComponentFactory provided to the VideoTheme that wraps all the screens rendered by this delegate. Override to customize individual components on those screens.

Functions

Link copied to clipboard

Content for in-call audio-only calls. Audio call is a call which returns false for Call.hasCapability when the argument is SendVideo

Link copied to clipboard

Content when the call has failed for whatever reason.

Link copied to clipboard
open override fun StreamCallActivity.CallFailedContent(call: Call, exception: Exception)

Content when the call has failed for whatever reason.

Link copied to clipboard
open override fun StreamCallActivity.IncomingCallContent(modifier: Modifier, call: Call, isVideoType: Boolean, isShowingHeader: Boolean, headerContent: @Composable ColumnScope.() -> Unit?, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit?, controlsContent: @Composable BoxScope.() -> Unit?, onBackPressed: () -> Unit, onCallAction: (CallAction) -> Unit)

Content for incoming call.

Link copied to clipboard

Content shown when there is data to be loaded.

Link copied to clipboard

Shows a progressbar until everything is set.

Link copied to clipboard

Content for when the call was not answered.

Link copied to clipboard
open override fun StreamCallActivity.OutgoingCallContent(modifier: Modifier, call: Call, isVideoType: Boolean, isShowingHeader: Boolean, headerContent: @Composable ColumnScope.() -> Unit?, detailsContent: @Composable ColumnScope.(participants: List<MemberState>, topPadding: Dp) -> Unit?, controlsContent: @Composable BoxScope.() -> Unit?, onBackPressed: () -> Unit, onCallAction: (CallAction) -> Unit)

Content for outgoing call.

Link copied to clipboard
open override fun StreamCallActivity.PermissionsRationaleContent(call: Call, granted: List<String>, notGranted: List<String>)

Content shown when the required permissions are not granted and the call cannot happen. Note: There are other places that permissions are required like in the service etc.. Best practice is to request these permissions a screen before starting the call.

Link copied to clipboard

Call when the call was rejected.

Link copied to clipboard

Root content of the UI. If you override this, the rest might not work as expected and need to be called from this method.

Link copied to clipboard
open override fun setContent(activity: StreamCallActivity, call: Call)

Create the delegate.

Link copied to clipboard

Content for in-call for every other call that has video capabilities. Default call is a call which returns true for Call.hasCapability when the argument is SendVideo