Package 

Object ScreenMeet.Companion

    • Method Detail

      • init

         final Unit init(Context appContext, ScreenMeet.Configuration configuration)

        SDK initialization method. Best to be called from Application class lifecycleCallback() should be called after init()

        Parameters:
        appContext -
        • application context

      • connect

         final Unit connect(String code, CompletionHandler completion)

        Starts ScreenMeet session. Current method only establishes network connection. To start streaming media use methods:

        Parameters:
        code - : Identify session created by agent
        completion - : Session start callback with status @see CompletionHandler
      • disconnect

         final Unit disconnect()

        Hangup from current ScreenMeet session Confirmation callback:

      • registerEventListener

         final Unit registerEventListener(SessionEventListener eventListener)

        Register to listen session events. Supports multiple listeners. Each listener stored as a WeakReference, so make sure to store reference in application

        Parameters:
        eventListener - the listener
      • shareCamera

         final Unit shareCamera(Boolean frontCam)

        Starts to share device camera Operation result should be expected in

        Parameters:
        frontCam - true for front camera, false for back camera.
      • shareCamera

         final Unit shareCamera(String deviceName)

        Starts to share device camera Operation result should be expected in

        Parameters:
        deviceName - specific camera device name from cameraManager.
      • shareScreen

         final Unit shareScreen()

        Starts to share current application and it's windows Operation result should be expected in

      • stopVideoSharing

         final Unit stopVideoSharing()

        Stops application or camera sharing Operation result should be expected in:

      • shareAudio

         final Unit shareAudio()

        Start to share audio from device microphone Operation result should be expected in

      • stopAudioSharing

         final Unit stopAudioSharing()

        Stops microphone sharing Operation result should be expected in:

      • localMediaState

         final ParticipantMediaState localMediaState()

        MediaState of local participant. Can be used to update UI state. If session wasn't started, by default, values would be initialized as false

      • localVideoTrack

         final VideoTrack localVideoTrack()

        Video track of local participant. Can be used to update UI state. If track is not present resulting value is null

      • setConfidential

         final Unit setConfidential(View view)

        Method which allows to hide confidential Views on stream Reference to View is stored as WeakReference, which means it would be cleared in SDK as soon as main application stops to hold this reference.

        Parameters:
        view - reference to target View
      • setConfidential

         final Unit setConfidential(WebView webView, Boolean applyToContent)

        Method which allows to hide confidential web-content inside WebView on stream IMPORTANT: setJavaScriptEnabled in WebSettings for WebView needs to be true

        Reference to WebView is stored as WeakReference, which means it would be cleared in SDK as soon as main application stops to hold this reference.

        Parameters:
        webView - reference to target WebView
        applyToContent - true applies confidential to WebView content, false - to WebView as whole View
      • unsetConfidential

         final Unit unsetConfidential(View view)

        Removes view obfuscation on stream

        Parameters:
        view - reference to target View
      • unsetConfidential

         final Unit unsetConfidential(WebView webView, Boolean appliedToContent)

        Removes WebView obfuscation on stream

        Parameters:
        webView - reference to target WebView