File tree 3 files changed +23
-0
lines changed
src/main/java/io/appium/java_client/screenrecording
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ public T withUploadOptions(ScreenRecordingUploadOptions uploadOptions) {
39
39
return (T ) this ;
40
40
}
41
41
42
+ /**
43
+ * Builds a map, which is ready to be passed to the subordinated
44
+ * Appium API.
45
+ *
46
+ * @return arguments mapping.
47
+ */
42
48
public Map <String , Object > build () {
43
49
final ImmutableMap .Builder <String , Object > builder = ImmutableMap .builder ();
44
50
//noinspection unchecked
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ default <T extends BaseStartScreenRecordingOptions> String startRecordingScreen(
39
39
return CommandExecutionHelper .execute (this , startRecordingScreenCommand (options ));
40
40
}
41
41
42
+ /**
43
+ * Start asynchronous screen recording process with default options.
44
+ *
45
+ * @return Base-64 encoded content of the recorded media file.
46
+ */
42
47
default String startRecordingScreen () {
43
48
return this .execute (START_RECORDING_SCREEN ).getValue ().toString ();
44
49
}
@@ -55,6 +60,12 @@ default <T extends BaseStopScreenRecordingOptions> String stopRecordingScreen(T
55
60
return CommandExecutionHelper .execute (this , stopRecordingScreenCommand (options ));
56
61
}
57
62
63
+ /**
64
+ * Gather the output from the previously started screen recording to a media file
65
+ * with default options.
66
+ *
67
+ * @return Base-64 encoded content of the recorded media file.
68
+ */
58
69
default String stopRecordingScreen () {
59
70
return this .execute (STOP_RECORDING_SCREEN ).getValue ().toString ();
60
71
}
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ public ScreenRecordingUploadOptions withHttpMethod(RequestMethod method) {
74
74
return this ;
75
75
}
76
76
77
+ /**
78
+ * Builds a map, which is ready to be passed to the subordinated
79
+ * Appium API.
80
+ *
81
+ * @return arguments mapping.
82
+ */
77
83
public Map <String , Object > build () {
78
84
final ImmutableMap .Builder <String , Object > builder = ImmutableMap .builder ();
79
85
ofNullable (remotePath ).map (x -> builder .put ("remotePath" , x ));
You can’t perform that action at this time.
0 commit comments