startScreenshare

fun startScreenshare(hmsActionResultListener: HMSActionResultListener, mediaProjectionPermissionResultData: Intent?, screenShareNotification: Notification? = null)

API to start screen share of your android device

Parameters

hmsActionResultListener

A callback instance on which HMSActionResultListener.onSuccess and HMSActionResultListener.onError will be called

mediaProjectionPermissionResultData

The intent passed by Android OS in onActivityResult callback

screenShareNotification

a sticky notification to show while screenshare is active. If null a default one will be created.