playIntegrityWithFormattedNoncePayload method

  1. @override
Future<PlayIntegrity> playIntegrityWithFormattedNoncePayload(
  1. Uint8List nonce,
  2. String decryptionKey,
  3. String verificationKey
)
override

Implementation

@override
Future<PlayIntegrity> playIntegrityWithFormattedNoncePayload(
    Uint8List nonce, String decryptionKey, String verificationKey) async {
  final String payload =
      await methodChannel.invokeMethod('requestPlayIntegrity', {
    "nonce_bytes": nonce,
    "decryption_key": decryptionKey,
    "verification_key": verificationKey
  });

  return PlayIntegrity.fromJson(jsonDecode(payload));
}