Package 

Interface StreamCallActivityComposeUi

  • All Implemented Interfaces:
    io.getstream.video.android.ui.common.StreamActivityUiDelegate

    
    public interface StreamCallActivityComposeUi
     implements StreamActivityUiDelegate<StreamCallActivity>
                        
    • Method Summary

      Modifier and Type Method Description
      abstract Unit RootContent(StreamCallActivity $self, Call call) Root content of the UI.
      abstract Unit LoadingContent(StreamCallActivity $self, Call call) Content shown when there is data to be loaded.
      abstract Unit AudioCallContent(StreamCallActivity $self, Call call) Content for in-call audio-only calls.
      abstract Unit VideoCallContent(StreamCallActivity $self, Call call) Content for in-call for every other call that has video capabilities.
      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.
      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.
      abstract Unit NoAnswerContent(StreamCallActivity $self, Call call) Content for when the call was not answered.
      abstract Unit RejectedContent(StreamCallActivity $self, Call call) Call when the call was rejected.
      abstract Unit CallFailedContent(StreamCallActivity $self, Call call, Exception exception) Content when the call has failed for whatever reason.
      abstract Unit CallDisconnectedContent(StreamCallActivity $self, Call call) Content when the call has failed for whatever reason.
      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.
      • Methods inherited from class io.getstream.video.android.compose.ui.StreamCallActivityComposeUi

        loadingContent, setContent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 false for Call.hasCapability when the argument is SendVideo

        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 true for Call.hasCapability when the argument is SendVideo

        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 modifier
        call - the call.
        isVideoType - if the call is video or not
        isShowingHeader - if the header will be shown
        headerContent - the content of the header
        detailsContent - 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 modifier
        call - 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.