Package 

Class StreamCallActivityComposeDelegate

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

    
    public class StreamCallActivityComposeDelegate
     implements StreamCallActivityComposeUi
                        

    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.

    • Constructor Detail

      • StreamCallActivityComposeDelegate

        StreamCallActivityComposeDelegate()
    • Method Detail

      • loadingContent

        @StreamCallActivityDelicateApi() Unit loadingContent(StreamCallActivity activity)

        Shows a progressbar until everything is set.

      • setContent

         Unit setContent(StreamCallActivity activity, Call call)

        Create the delegate.

        Parameters:
        activity - the activity
        call - the call
      • RootContent

        @StreamCallActivityDelicateApi()@Composable() 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() Unit LoadingContent(StreamCallActivity $self, Call call)

        Content shown when there is data to be loaded.

        Parameters:
        call - the call.
      • AudioCallContent

        @Composable() 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() 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() 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() 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() Unit NoAnswerContent(StreamCallActivity $self, Call call)

        Content for when the call was not answered.

        Parameters:
        call - the call.
      • RejectedContent

        @Composable() Unit RejectedContent(StreamCallActivity $self, Call call)

        Call when the call was rejected.

        Parameters:
        call - the call.
      • CallFailedContent

        @Composable() Unit CallFailedContent(StreamCallActivity $self, Call call, Exception exception)

        Content when the call has failed for whatever reason.

        Parameters:
        call - the call
      • CallDisconnectedContent

        @Composable() Unit CallDisconnectedContent(StreamCallActivity $self, Call call)

        Content when the call has failed for whatever reason.

        Parameters:
        call - the call
      • PermissionsRationaleContent

        @Composable() 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.