To detect a screenshot is simple. For example,
1) add to the bottom of Main module
#If OBJC
- (void) DetectScreenshot
{
NSOperationQueue *mainQueue = [NSOperationQueue mainQueue];
[[NSNotificationCenter defaultCenter] addObserverForName: UIApplicationUserDidTakeScreenshotNotification
object: nil queue: mainQueue usingBlock: ^(NSNotification *note) { self._screenshot; }];
}
#End If
2) Call this subroutine from Application_Start
Dim no As NativeObject = Me
no.RunMethod ("DetectScreenshot", Null)
3) Add callback function
Private Sub Screenshot
xui.MsgboxAsync("Screenshot", "B4X") ' Or what you want to do
End Sub
I will not surprise, if it will be easy to remove screenshot from device.
But don't remember that bad boy can take another phone and to make a photo.