getStopScreenSharePendingIntent

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.