DeviceIntegrityResult class
A comprehensive result model containing details from both offline and online integrity checks.
Constructors
- DeviceIntegrityResult({bool isDeveloperModeEnabled = false, bool isRooted = false, bool isEmulator = false, bool hasPotentiallyDangerousApps = false, bool isJailbroken = false, bool isRealDevice = true, String? playIntegrityToken, String? playIntegrityError})
- Creates a DeviceIntegrityResult instance.
-
DeviceIntegrityResult.fromOfflineMap(Map<
String, dynamic> map) -
Factory method to create a result from a map returned by the native platform.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPotentiallyDangerousApps → bool
-
Indicates if potentially dangerous apps (like root managers) are installed.
final
- isDeveloperModeEnabled → bool
-
Indicates if Developer Mode (or USB Debugging) is enabled on the device.
final
- isEmulator → bool
-
Indicates if the app is running on an Emulator or Simulator.
final
- isJailbroken → bool
-
Indicates if the device is Jailbroken (iOS only).
final
- isRealDevice → bool
-
Indicates if the device is a physical device (iOS only).
For Android, this is usually inferred from isEmulator.
final
- isRooted → bool
-
Indicates if the device is Rooted (Android only).
final
- playIntegrityError → String?
-
Error message if the Google Play Integrity check failed.
final
- playIntegrityToken → String?
-
The token received from Google Play Integrity API (Android only).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasPlayIntegritySuccessful → bool
-
Returns
trueif the Play Integrity API call was successful and returned a token.no setter
Methods
-
isSecure(
[IntegrityCheckConfig config = const IntegrityCheckConfig()]) → bool -
Determines if the device is secure based on the provided
config. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withPlayIntegrity(
{String? token, String? error}) → DeviceIntegrityResult - Returns a new instance with updated Play Integrity data.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited