Object HMSScreenCaptureService.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final PendingIntent getStopScreenSharePendingIntent(Context context) Gets a pending intent that when applied to a notification will stop the screenshare.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getStopScreenSharePendingIntent

         final PendingIntent getStopScreenSharePendingIntent(Context context)

        Gets a pending intent that when applied to a notification will stop the screenshare. Use like so:

        val notification = NotificationCompat.Builder(getApplication(), "Some channel")

        .setContentText("Screenshare running for roomId: ${hmsRoom?.roomId}") .setSmallIcon(R.drawable.stat_notify_call_mute) .addAction(R.drawable.ic_menu_close_clear_cancel, "Close", HMSScreenCaptureService.getStopScreenSharePendingIntent(getApplication())) .build() hmsSDK.startScreenshare(actionListener, mediaProjectionPermissionResultData, notification)

        Parameters:
        context - Any context.