FraudProtection class
Provides access to device security and fraud protection checks.
This class exposes a set of static methods and event streams that allow Flutter applications to detect potential security threats such as:
- Active device administrator apps
- Developer mode status
- Overlay windows and touch blocking
- Accessibility service whitelisting / blacklisting
- Obscured or partially obscured touches (from overlays)
Intended for use in high-security applications such as banking, authentication, and enterprise apps.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
callEvents
→ Stream<
CallEvent> -
Stream CallEvents
no setter
-
displayEvents
→ Stream<
DisplayEvent> -
Stream DisplayEvents
no setter
-
microphoneEvents
→ Stream<
bool> -
no setter
-
touchEvents
→ Stream<
String> -
Broadcast stream of obscured and partially obscured touch events.
no setter
Static Methods
-
areAllAccessibilityServicesWhitelisted(
List< String> whitelist) → Future<bool> - Verifies that all enabled accessibility services are included in a whitelist.
-
getActiveAccessibilityServices(
) → Future< List< String> > - Retrieves a list of all currently active accessibility services.
-
getAllActiveKeyboards(
) → Future< List< String> > -
isAnyAccessibilityServiceBlacklisted(
List< String> blacklist) → Future<bool> - Checks if any enabled accessibility service is included in a blacklist.
-
isDeveloperModeEnabled(
) → Future< bool> - Checks whether developer mode is enabled on the device.
-
isDeviceAdminActive(
) → Future< bool> - Checks whether any device administrator applications are currently active.
-
setBlockOverlayTouches(
bool shouldBlockOverlayTouches) → Future< void> - Controls whether touches coming through overlay windows should be blocked.
-
setHideOverlayWindows(
bool shouldHideOverlayWindows) → Future< void> - Controls whether overlay windows should be hidden.
Constants
-
DEFAULT_ACCESSIBILITY_BLACKLIST
→ const List<
String> -
DEFAULT_ACCESSIBILITY_WHITELIST
→ const List<
String> - Example whitelist for initial accessibility verification