FlutterAntiVirtualsPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • FlutterAntiVirtualsPlatform
Implementers

Properties

environmentChanges → Stream<void>
Emits whenever the network setup changes in a way that can turn a VPN or proxy on or off. Platforms without live monitoring never emit.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenshots → Stream<void>
Emits after the user takes a screenshot. Platforms that cannot tell never emit.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preparePlayIntegrity(int cloudProjectNumber) → Future<bool>
Prepares Play Integrity standard requests for cloudProjectNumber so a later requestAttestation is fast. Returns false where there is no Play Integrity.
rebindDevice() → Future<bool>
Ties the app's data to this device again, so appDataMigrated reads clean until the data moves again. Returns false where there is no such check.
requestAttestation(String payload, AttestationOptions options) → Future<PlatformAttestation>
Asks Play Integrity (Android) or App Attest (iOS) for a token bound to payload: the nonce or client data hash is the SHA-256 of its UTF-8 bytes. Fails when the service is unavailable on this device.
scan(ScanOptions options) → Future<AntiVirtualReport>
setScreenProtection(ScreenProtectionOptions? options) → Future<bool>
Applies options to the app's window, or removes the protections when it is null. Returns false when nothing could be applied yet (Android without a resumed activity; it is applied as soon as one is attached) or when the platform has no such protection.
showPlayIntegrityDialog(PlayIntegrityDialog dialog) → Future<PlayIntegrityDialogResult>
Shows a Play Integrity remediation dialog for the most recent token response of this app session (Android).
signPayload(String nonce, String payload) → Future<DeviceSignature>
Signs payload (UTF-8) with a key created on the device for this one request. On Android the key carries a hardware attestation whose challenge is the SHA-256 of nonce where the device supports it.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ FlutterAntiVirtualsPlatform
getter/setter pair