MethodChannelFlutterAntiVirtuals class
- Inheritance
-
- Object
- PlatformInterface
- FlutterAntiVirtualsPlatform
- MethodChannelFlutterAntiVirtuals
Constructors
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.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- 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.
latefinal
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
cloudProjectNumberso a later requestAttestation is fast. Returns false where there is no Play Integrity.override -
rebindDevice(
) → Future< bool> -
Ties the app's data to this device again, so
appDataMigratedreads clean until the data moves again. Returns false where there is no such check.override -
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.override -
scan(
ScanOptions options) → Future< AntiVirtualReport> -
override
-
setScreenProtection(
ScreenProtectionOptions? options) → Future< bool> -
Applies
optionsto 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.override -
showPlayIntegrityDialog(
PlayIntegrityDialog dialog) → Future< PlayIntegrityDialogResult> -
Shows a Play Integrity remediation dialog for the most recent token
response of this app session (Android).
override
-
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 ofnoncewhere the device supports it.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- changesChannelName → const String
- Name of the event channel the native side streams network changes on.
- screenshotsChannelName → const String
- Name of the event channel the native side reports screenshots on.