-
public final class StrictModeExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TallowThreadDiskReads(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> TallowThreadDiskWrites(Function0<T> operation)This utility function wraps a call to a method that needs to perform a disk write operation on the main thread. -
-
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
-
-
-
-