SafetyDetect class abstract

Safety Detect Plugin Class

Constructors

SafetyDetect()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

getAppID Future<String>
Obtains the Application ID from the agconnect-services.json file.
no setter

Static Methods

disableLogger() Future<void>
Disables HMS Plugin Method Analytics.
enableAppsCheck() Future<bool>
Enables app security check.
enableLogger() Future<void>
Enables HMS Plugin Method Analytics.
getMaliciousAppsList() Future<List<MaliciousAppData>>
Initiates an app security check request.
getRiskToken() Future<String?>
Obtains a risk token.
getWifiDetectStatus() Future<WifiDetectResponse>
Obtains the malicious Wi-Fi check result. Note: This feature is available only in the Chinese Mainland.
initAntiFraud(String appId) Future<void>
Initializes imperceptible fake user detection.
initUrlCheck() Future<void>
Initializes URL check.
initUserDetect() Future<void>
Initializes fake user detection.
isVerifyAppsCheck() Future<bool>
Checks whether app security check is enabled.
releaseAntiFraud() Future<void>
Disables imperceptible fake user detection.
shutdownUrlCheck() Future<void>
Disables URL check.
shutdownUserDetect() Future<void>
Disables fake user detection.
sysIntegrity(Uint8List nonce, String appId, {String? alg}) Future<String>
Initiates a request to check the system integrity of the current device.
urlCheck(String url, String appId, List<UrlThreatType> urlThreatTypes) Future<List<UrlCheckThreat>>
Initiates a URL check request.
userDetection(String appId) Future<String?>
Initiates a fake user detection request. Note: This feature is not available in the Chinise Mainland.

Constants

statusCodes → const Map<String, String>
Status codes map of the Safety Detect SDK.