TamperDetector
Factory function for creating TamperDetector instances with custom detection logic.
This inline function provides a convenient way to create TamperDetector implementations using lambda expressions, allowing for quick prototyping and custom detection strategies.
Example usage:
val customDetector = TamperDetector {
// Custom tamper detection logic returning confidence score
if (checkRootAccess() || checkDebuggingTools()) 1.0 else 0.0
}Content copied to clipboard
Return
A TamperDetector instance that executes the provided detection logic
Parameters
block
A suspending lambda function that returns a confidence score (0.0 to 1.0)