Class ContentSharingRenderer<T extends android.view.View & ZoomableSharingView>

    • Constructor Detail

      • ContentSharingRenderer

        public ContentSharingRenderer()
    • Method Detail

      • onContentSharingStarted

        public void onContentSharingStarted​(ContentSharing contentSharing,
                                            Participant participant)
        Description copied from interface: ContentSharingListener
        Reports that content sharing session has been started either locally or remotely
        Specified by:
        onContentSharingStarted in interface ContentSharingListener
        Parameters:
        contentSharing - content sharing session the callback is associated with.
        participant - data of participant who started content sharing.
      • onSharingFrameReceived

        public void onSharingFrameReceived​(ContentSharing contentSharing,
                                           Size size)
        Description copied from interface: ContentSharingListener
        Reports that entire content sharing frame was received from server. It indicates that the client screen sharing is ready to be shown to the user. Size parameter lets the client properly update UI with sharing size if needed.
        Specified by:
        onSharingFrameReceived in interface ContentSharingListener
        Parameters:
        contentSharing - content sharing object.
        size - size of received sharing frame.
      • setImageBitmap

        public void setImageBitmap​(android.graphics.Bitmap bitmap)
        Sets Bitmap image on renderer object to be displayed on views. Notifies private listeners about this change.
        Parameters:
        bitmap - image to set.
      • setCursorIcon

        public void setCursorIcon​(android.graphics.Bitmap cursorIcon)
        Sets cursor icon which will be displayed in content sharing session.
        Parameters:
        cursorIcon - cursor icon.
      • setPauseIcon

        public void setPauseIcon​(android.graphics.Bitmap pauseIcon)
        Sets pause icon which will be displayed in content sharing session.
        Parameters:
        pauseIcon - pause icon.
      • getLastImageBitmap

        public android.graphics.Bitmap getLastImageBitmap()
        Returns last successfully processed image bitmap.
        Returns:
        last bitmap image.
      • isScreenSharingPaused

        public boolean isScreenSharingPaused()
        Detects if current content sharing session is paused.
        Returns:
        true if current content sharing session is paused, otherwise false.
      • getContentSharingView

        public android.view.View getContentSharingView​(T sharingView)
        Creates zoomable version of content sharing view. On this view will be displayed a content sharing session with cursor and pause events.
        Parameters:
        sharingView - zoomable view.
        Returns:
        content sharing view.
      • getContentSharingView

        @Deprecated
        public android.view.View getContentSharingView​(ZoomableImageView sharingView)
        Deprecated.
      • getContentSharingView

        public android.view.View getContentSharingView​(android.content.Context context)
        Creates content sharing view without zoomable functionality. On this view will be displayed a content sharing session with cursor and pause events.
        Parameters:
        context - context.
        Returns:
        content sharing view.
      • getRendererId

        public long getRendererId()
      • setRendererId

        public void setRendererId​(long rendererId)