Package 

Class StrictModeExtKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T allowThreadDiskReads(Function0<T> operation) This utility function wraps a call to a method that needs to perform a disk read operation on the main thread.
      final static <T extends Any> T allowThreadDiskWrites(Function0<T> operation) This utility function wraps a call to a method that needs to perform a disk write operation on the main thread.
      • Methods inherited from class java.lang.Object

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

      • allowThreadDiskReads

         final static <T extends Any> T allowThreadDiskReads(Function0<T> operation)

        This utility function wraps a call to a method that needs to perform a disk read operation on the main thread. This prevents adding LogCat noise when customer enable StrictMode logging.

        Parameters:
        operation - the operation
      • allowThreadDiskWrites

         final static <T extends Any> T allowThreadDiskWrites(Function0<T> operation)

        This utility function wraps a call to a method that needs to perform a disk write operation on the main thread. This prevents adding LogCat noise when customer enable StrictMode logging.

        Parameters:
        operation - the operation