enable method

  1. @override
Future<bool> enable()
override

Request that the OS prevent screenshots / hide the screen from the app switcher while the sensitive screen is visible. Best-effort and idempotent; a failure never breaks the screen (the protection is defence-in-depth, not the gate).

Returns whether the protection actually ENGAGED (the native side acknowledged). The UI claims "screenshots are off" only on true — a capable-looking platform whose host never wired the native handler must read as UNPROTECTED, never as protected (extraction review B1: the old void signature let a missing handler be swallowed into a false security claim on the seed screen).

Implementation

@override
Future<bool> enable() async {
  enableCount++;
  return engages;
}