Disable screenshots

In SmartDevicesPlus 5 were added some new methods in the External Object SmartDevicesPlusUtil. These functionalities are currently only available for Android.

Two of these new method allow to enable and disable the possibility to take screenshots.

These methods are the following:

The SmartDevicesPlusUtil object structure lists Methods including ToggleAndroidChartsScroll, TakeScreenshot, ImageToBase64, ImageFromBase64, SetScreenBrightness, GetScreenBrightness, TurnOffSleepMode/TurnOnSleepMode, and TurnOnShake/TurnOffShake, with "TurnOnScreenRecording" and "TurnOffScreenRecording" highlighted in a red box, followed by an Events section with OnShake.

To use this functionality, you must invoke these methods at the time you need:

In the ScreenRecording object's Events tab, the code editor shows the 'TurnOffScreenRecording' event calling SmartDevicesPlusUtil.TurnOffScreenRecording(), and the 'TurnOnScreenRecording' event calling SmartDevicesPlusUtil.TurnOnScreenRecording().

This could be useful in screen in which you handle sensitive data:

This functionality in only available in Android.

As of WorkWithPlus for Native Mobile 15, is renamed to WorkWithPlusNMUtils.