# ScreenSource

@RequiresApi(value = 21)
class ScreenSource @JvmOverloads constructor(context: Context, mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null, virtualDisplayCallback: VirtualDisplay.Callback? = null) : VideoSource

Created by pedro on 11/1/24.

## Constructors

ScreenSource
Link copied to clipboard
@JvmOverloads
constructor(context: Context, mediaProjection: MediaProjection, mediaProjectionCallback: MediaProjection.Callback? = null, virtualDisplayCallback: VirtualDisplay.Callback? = null)

## Properties

created
Link copied to clipboard
var created: Boolean
fps
Link copied to clipboard
var fps: Int
height
Link copied to clipboard
var height: Int
rotation
Link copied to clipboard
var rotation: Int
surfaceTexture
Link copied to clipboard
var surfaceTexture: SurfaceTexture?
width
Link copied to clipboard
var width: Int

## Functions

getOrientationConfig
Link copied to clipboard
open override fun getOrientationConfig(): OrientationConfig
init
Link copied to clipboard
fun init(width: Int, height: Int, fps: Int, rotation: Int): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
release
Link copied to clipboard
open override fun release()
resize
Link copied to clipboard
fun resize(width: Int, height: Int)
start
Link copied to clipboard
open override fun start(surfaceTexture: SurfaceTexture)
stop
Link copied to clipboard
open override fun stop()