AndroidIntegrityResult class

Result of Android Play Integrity verification.

Contains the integrity token and package information generated by Google Play Integrity API. This data can be used to verify the authenticity and integrity of the Android app.

Usage

final result = await CalljmpDevice.instance.androidRequestIntegrityToken(
  cloudProjectNumber,
  challenge
);
print('Package: ${result.packageName}');
// Send integrity token to server for verification

Constructors

AndroidIntegrityResult({required String integrityToken, required String packageName})
Creates an AndroidIntegrityResult with the specified values.
AndroidIntegrityResult.fromJson(Map<String, dynamic> json)
Creates an AndroidIntegrityResult from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
integrityToken String
The integrity token generated by Play Integrity API.
final
packageName String
The package name of the Android application.
final
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
toJson() Map<String, dynamic>
Converts this result to a JSON map.
toString() String
A string representation of this object.
override

Operators

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