class RecorderCommands


Allows running the screen record android utility to record the screen.

Summary

Public functions

Recording
start(
    outputFile: File,
    width: Int,
    height: Int,
    bitRateMb: @IntRange(from = 0) Int
)

Starts the recording.

Public functions

start

Added in 2.4.0-beta01
fun start(
    outputFile: File,
    width: Int = 0,
    height: Int = 0,
    bitRateMb: @IntRange(from = 0) Int = 0
): Recording

Starts the recording.

Parameters
outputFile: File

the output file where to write the recording.

width: Int = 0

the width of the screen in pixels.

height: Int = 0

the height of the screen in pixels.

bitRateMb: @IntRange(from = 0) Int = 0

the bitrate of the recording in Mb/s.

Returns
Recording

a running Recording.

When width, and height are unspecified, the recorder uses the display's native resolution (if supported) and 1280x720` when not. For more information, you can read the documentation here.