Stop media injection (FR)

Perfecto command

mobile:image.injection:stop

Purpose

Stops Perfecto from supplying media to the application when the application tries to retrieve camera media. Media is supplied by the device camera after invoking the command.

Used in conjunction with Start media Injection.

To learn more about media injection, including requirements and limitations, see Media injection overview.

Parameters

None

Return value

None

Exceptions

None

Examples

Copy

Java sample

 Map<String, Object> params = new HashMap<>();
 Object res = driver.executeScript("mobile:image.injection:stop", params);
Copy

C# sample

 Dictionary<String, Object> pars = new Dictionary<String, Object>();
 driver.ExecuteScript("mobile:image.injection:stop", pars);