public final class RecorderCommands


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

Summary

Public methods

final @NonNull Recording
start(
    @NonNull File outputFile,
    String screenSizePixel,
    @IntRange(from = 0) int bitRateMb,
    @IntRange(from = 0) long timeLimitSeconds
)

Starts the recording.

Public methods

start

Added in 1.0.0-alpha01
public final @NonNull Recording start(
    @NonNull File outputFile,
    String screenSizePixel,
    @IntRange(from = 0) int bitRateMb,
    @IntRange(from = 0) long timeLimitSeconds
)

Starts the recording.

Parameters
@NonNull File outputFile

the output file where to write the recording.

String screenSizePixel

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

@IntRange(from = 0) int bitRateMb

the bitrate of the recording in Mb.

@IntRange(from = 0) long timeLimitSeconds

the number of seconds to record.

Returns
@NonNull Recording

a running Recording.