FlutterRasp class

Main entry point for the flutter_rasp plugin.

Provides real-time threat monitoring, on-demand security scans, and screen capture protection for Android and iOS.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isInitialized → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachListener(ThreatCallback callback) → void
Replaces the current ThreatCallback at runtime.
blockScreenCapture(bool enabled) → Future<void>
When true, hides app content from screenshots and screen recordings.
detachListener() → void
dispose() → Future<void>
Stops monitoring and releases all resources.
hasObfuscationIssues() → Future<bool>
initialize({RaspConfig config = RaspConfig.defaultConfig, void onThreatDetected(Set<Threat> threats)?, ThreatCallback? threatCallback, ReporterConfig? reporter}) → Future<void>
Starts real-time threat monitoring. Provide at least one of onThreatDetected or threatCallback. Pass reporter to also boot the RaspReporter in the same call.
isAdbEnabled() → Future<bool>
isDebugged() → Future<bool>
isDeveloperMode() → Future<bool>
isDevicePasscodeDisabled() → Future<bool>
isEmulator() → Future<bool>
isHooked() → Future<bool>
isLocationSpoofed() → Future<bool>
isMultiInstance() → Future<bool>
isRepackaged() → Future<bool>
isRooted() → Future<bool>
isScreenCaptureBlocked() → Future<bool>
isSecureHardwareUnavailable() → Future<bool>
isTimeSpoofed() → Future<bool>
isUntrustedInstall() → Future<bool>
isVpnConnected() → Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetForTesting() → void
scanAll({Set<Threat> enabledThreats = const {}}) → Future<RaspResult>
Runs a one-time scan. If enabledThreats is empty, all threats are scanned.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → FlutterRasp
final