-
- All Implemented Interfaces:
public class HMSScreenCaptureService.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final StringACTION_STARTprivate final StringACTION_STOPprivate final StringLOCAL_SCREEN_CAPTURER_THREADprivate final StringPERMISSION_RESULT_DATAprivate final StringSCREEN_WIDTHprivate final StringSCREEN_HEIGHTpublic 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. final StringgetACTION_START()final StringgetACTION_STOP()final StringgetLOCAL_SCREEN_CAPTURER_THREAD()final StringgetPERMISSION_RESULT_DATA()final StringgetSCREEN_WIDTH()final StringgetSCREEN_HEIGHT()-
-
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.
-
getACTION_START
final String getACTION_START()
-
getACTION_STOP
final String getACTION_STOP()
-
getLOCAL_SCREEN_CAPTURER_THREAD
final String getLOCAL_SCREEN_CAPTURER_THREAD()
-
getPERMISSION_RESULT_DATA
final String getPERMISSION_RESULT_DATA()
-
getSCREEN_WIDTH
final String getSCREEN_WIDTH()
-
getSCREEN_HEIGHT
final String getSCREEN_HEIGHT()
-
-
-
-