pub trait AndroidCanRecordScreen: CanRecordScreen {
    // Provided methods
    fn start_recording<'life0, 'async_trait>(
        &'life0 self,
        bit_rate: Option<u32>,
        video_size: Option<String>,
        bug_report: Option<bool>,
        force_restart: Option<bool>,
        time_limit: Option<Duration>,
        options: ScreenRecordingUploadOptions
    ) -> Pin<Box<dyn Future<Output = Result<String, CmdError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn stop_recording<'life0, 'async_trait>(
        &'life0 self,
        options: ScreenRecordingUploadOptions
    ) -> Pin<Box<dyn Future<Output = Result<String, CmdError>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Record screen with Android-specific encoding options

Provided Methods§

source

fn start_recording<'life0, 'async_trait>( &'life0 self, bit_rate: Option<u32>, video_size: Option<String>, bug_report: Option<bool>, force_restart: Option<bool>, time_limit: Option<Duration>, options: ScreenRecordingUploadOptions ) -> Pin<Box<dyn Future<Output = Result<String, CmdError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Starts screen recording (Android).

bit_rate - The video bit rate for the video, in megabits per second. The default value is 4000000 (4 Mb/s) for Android API level below 27 and 20000000 (20 Mb/s) for API level 27 and above.

vide_size - The video size of the generated media file. The format is WIDTHxHEIGHT. The default value is the device’s native display resolution (if supported), 1280x720 if not.

bug_report - Makes the recorder to display an additional information on the video overlay, such as a timestamp, that is helpful in videos captured to illustrate bugs. This option is only supported since API level 27 (Android P).

source

fn stop_recording<'life0, 'async_trait>( &'life0 self, options: ScreenRecordingUploadOptions ) -> Pin<Box<dyn Future<Output = Result<String, CmdError>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§