AvailableRamMethod class
Detection method that checks for unusually low available RAM ratio.
This method calculates the ratio of available RAM to physical RAM and flags devices with very low available memory. Emulators often have limited RAM allocation compared to physical devices, resulting in low available RAM ratios.
Reliability: Medium (60-75%)
- Good indicator for resource-constrained emulators
- May have false positives on devices with many running apps
- Some emulators may allocate more RAM to avoid detection
Score: 10 points when available RAM ratio is below 20%
Performance: Fast - only checks numeric properties
- Inheritance
-
- Object
- EmulatorDetectionMethod
- AvailableRamMethod
Constructors
- AvailableRamMethod.new({double score = 10, String? reason = "Available RAM unusually low"})
Properties
Methods
-
execute(
) → Future< ({String? reason, double score})> -
Executes the method and returns a score between 0 and 100
override
-
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