Package live.hms.video.services
Object HMSScreenCaptureService.Companion
-
- All Implemented Interfaces:
public class HMSScreenCaptureService.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static HMSScreenCaptureService.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final PendingIntentgetStopScreenSharePendingIntent(Context context)Gets a pending intent that when applied to a notification will stop the screenshare. -
-
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.
-
-
-
-