onScreenshot property
void Function()?
get
onScreenshot
Runs when the user takes a screenshot (iOS only). UScreenGuard.onScreenshot = () => UToast.warning(message: "Screenshots are not allowed")
Implementation
static void Function()? get onScreenshot => UScreenGuardChannel.onScreenshot;
set
onScreenshot
(void callback()?)
Runs when the user takes a screenshot (iOS only). UScreenGuard.onScreenshot = () => UToast.warning(message: "Screenshots are not allowed")
Implementation
static set onScreenshot(void Function()? callback) => UScreenGuardChannel.onScreenshot = callback;