-
- All Implemented Interfaces:
-
io.getstream.video.android.ui.common.StreamActivityUiDelegate
public interface StreamCallActivityComposeUi implements StreamActivityUiDelegate<StreamCallActivity>
-
-
Method Summary
Modifier and Type Method Description abstract UnitRootContent(StreamCallActivity $self, Call call)Root content of the UI. abstract UnitLoadingContent(StreamCallActivity $self, Call call)Content shown when there is data to be loaded. abstract UnitAudioCallContent(StreamCallActivity $self, Call call)Content for in-call audio-only calls. abstract UnitVideoCallContent(StreamCallActivity $self, Call call)Content for in-call for every other call that has video capabilities. abstract UnitOutgoingCallContent(StreamCallActivity $self, Modifier modifier, Call call, Boolean isVideoType, Boolean isShowingHeader, Function1<ColumnScope, Unit> headerContent, Function3<ColumnScope, List<MemberState>, Dp, Unit> detailsContent, Function1<BoxScope, Unit> controlsContent, Function0<Unit> onBackPressed, Function1<CallAction, Unit> onCallAction)Content for outgoing call. abstract UnitIncomingCallContent(StreamCallActivity $self, Modifier modifier, Call call, Boolean isVideoType, Boolean isShowingHeader, Function1<ColumnScope, Unit> headerContent, Function3<ColumnScope, List<MemberState>, Dp, Unit> detailsContent, Function1<BoxScope, Unit> controlsContent, Function0<Unit> onBackPressed, Function1<CallAction, Unit> onCallAction)Content for incoming call. abstract UnitNoAnswerContent(StreamCallActivity $self, Call call)Content for when the call was not answered. abstract UnitRejectedContent(StreamCallActivity $self, Call call)Call when the call was rejected. abstract UnitCallFailedContent(StreamCallActivity $self, Call call, Exception exception)Content when the call has failed for whatever reason. abstract UnitCallDisconnectedContent(StreamCallActivity $self, Call call)Content when the call has failed for whatever reason. abstract UnitPermissionsRationaleContent(StreamCallActivity $self, Call call, List<String> granted, List<String> notGranted)Content shown when the required permissions are not granted and the call cannot happen. -
-
Method Detail
-
RootContent
@StreamCallActivityDelicateApi()@Composable() abstract Unit RootContent(StreamCallActivity $self, Call call)
Root content of the UI. If you override this, the rest might not work as expected and need to be called from this method.
- Parameters:
call- the call.
-
LoadingContent
@Composable() abstract Unit LoadingContent(StreamCallActivity $self, Call call)
Content shown when there is data to be loaded.
- Parameters:
call- the call.
-
AudioCallContent
@Composable() abstract Unit AudioCallContent(StreamCallActivity $self, Call call)
Content for in-call audio-only calls. Audio call is a call which returns
falsefor Call.hasCapability when the argument isSendVideo- Parameters:
call- the call.
-
VideoCallContent
@Composable() abstract Unit VideoCallContent(StreamCallActivity $self, Call call)
Content for in-call for every other call that has video capabilities. Default call is a call which returns
truefor Call.hasCapability when the argument isSendVideo- Parameters:
call- the call.
-
OutgoingCallContent
@Composable() abstract Unit OutgoingCallContent(StreamCallActivity $self, Modifier modifier, Call call, Boolean isVideoType, Boolean isShowingHeader, Function1<ColumnScope, Unit> headerContent, Function3<ColumnScope, List<MemberState>, Dp, Unit> detailsContent, Function1<BoxScope, Unit> controlsContent, Function0<Unit> onBackPressed, Function1<CallAction, Unit> onCallAction)
Content for outgoing call.
- Parameters:
modifier- the UI modifiercall- the call.isVideoType- if the call is video or notisShowingHeader- if the header will be shownheaderContent- the content of the headerdetailsContent- the details content (participant avatars etc..
-
IncomingCallContent
@Composable() abstract Unit IncomingCallContent(StreamCallActivity $self, Modifier modifier, Call call, Boolean isVideoType, Boolean isShowingHeader, Function1<ColumnScope, Unit> headerContent, Function3<ColumnScope, List<MemberState>, Dp, Unit> detailsContent, Function1<BoxScope, Unit> controlsContent, Function0<Unit> onBackPressed, Function1<CallAction, Unit> onCallAction)
Content for incoming call.
- Parameters:
modifier- the modifiercall- the call.
-
NoAnswerContent
@Composable() abstract Unit NoAnswerContent(StreamCallActivity $self, Call call)
Content for when the call was not answered.
- Parameters:
call- the call.
-
RejectedContent
@Composable() abstract Unit RejectedContent(StreamCallActivity $self, Call call)
Call when the call was rejected.
- Parameters:
call- the call.
-
CallFailedContent
@Composable() abstract Unit CallFailedContent(StreamCallActivity $self, Call call, Exception exception)
Content when the call has failed for whatever reason.
- Parameters:
call- the call
-
CallDisconnectedContent
@Composable() abstract Unit CallDisconnectedContent(StreamCallActivity $self, Call call)
Content when the call has failed for whatever reason.
- Parameters:
call- the call
-
PermissionsRationaleContent
@Composable() abstract Unit PermissionsRationaleContent(StreamCallActivity $self, Call call, List<String> granted, List<String> notGranted)
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.
-
-
-
-