StreamCallActivityComposeDelegate

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

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

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