Object StrictModePolicy

  • All Implemented Interfaces:

    
    public class StrictModePolicy
    
                        

    This is a utility class to enable strict mode thread and VM policy violation checks for debug build only.

    Author:

    lakshya.gupta

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit enableStrictMode(Boolean enable)
      final Unit enablePolicyCheck() Method to enable the strict mode thread and VM policy violations check.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • enablePolicyCheck

         final Unit enablePolicyCheck()

        Method to enable the strict mode thread and VM policy violations check. if any violations are found in debug build the violation stack trace will be printed in the logcat.