getDisplayMedia

suspend fun getDisplayMedia(options: DisplayMediaStreamOptions = definedExternally): MediaStream(source)

MDN Reference