Tested on Android 10.
Setting below Flag with this library wont work
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
The user still allowed to take a screenshot or record a video, when the image is opened.
PS below Android 8... Secure Flag works with this library