...
They can be setup using FlutterMobileProtect.onProtectionCallback((reason) async { TODO(); });
and FlutterMobileProtect.onEventsCallback((reason) async { TODO(); });
For example, if you want to listen to emulator and jailbreak protection events only, you can use it this way:
Code Block |
---|
FlutterMobileProtect.onEventsCallback((reason) async {
if(reason == "EmulatorProtection") {
// do something
} else if (reason == "JailbreakDetection") {
// do something (else)
} else {
// do nothing
}
}); |
...
Upgrading from earlier versions (prior to v23.0.0)
...