set

fun set(mediaProjection: MediaProjection)

Stores mediaProjection as the active projection token and registers the required callback.