class RecorderCommands


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

Summary

Public functions

Recording
start(
    outputFile: File,
    screenSizePixel: String?,
    bitRateMb: @IntRange(from = 0) Int,
    timeLimitSeconds: @IntRange(from = 0) Long
)

Starts the recording.

Public functions

start

Added in 1.0.0-alpha01
fun start(
    outputFile: File,
    screenSizePixel: String? = null,
    bitRateMb: @IntRange(from = 0) Int = 0,
    timeLimitSeconds: @IntRange(from = 0) Long = 0
): Recording

Starts the recording.

Parameters
outputFile: File

the output file where to write the recording.

screenSizePixel: String? = null

the size of the screen in format x, ex: 1200x800.

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

the bitrate of the recording in Mb.

timeLimitSeconds: @IntRange(from = 0) Long = 0

the number of seconds to record.

Returns
Recording

a running Recording.