ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ScreenshotAllowed (Property)
In french: CopieEcranAutorisée
The ScreenshotAllowed property is used to:
  • Finding out whether window screenshots are allowed,
  • Allow or prevent window screenshots.
Remark:
  • This property is used to prevent taking screenshots of windows that contain sensitive data. If a user requests a screenshot of a window in the foreground, and the ScreenshotAllowed property is set to False, the system will prevent the screenshot from being taken.
  • This property is equivalent to the "Allow window screenshot" option, in the "Details" tab of the window description.
Example
// Prevent from taking a screenshot of the window
WIN_CodeInput.ScreenshotAllowed = False
Syntax

Finding out whether window screenshots are allowed Hide the details

<Result> = <Window>.ScreenshotAllowed
<Result>: Boolean
  • True if screenshots are allowed,
  • False otherwise.
<Window>: Window name
Name of the window used.

Allowing or preventing window screenshots. Hide the details

<Window>.ScreenshotAllowed = <Authorization>
<Window>: Window name
Name of the window used.
<Authorization>: Boolean
  • True if screenshots are allowed,
  • False otherwise.
Remarks
Android If the window is in the foreground and the ScreenshotAllowed property is set to False, the content of the window will not be visible in the recent apps menu of the device.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help