AutoDisposeAndroidPlugins

Utility class to inject handlers to certain standard AutoDispose Android operations.

Functions

Link copied to clipboard
open fun isLockdown(): Boolean
Returns true if the plugins were locked down.
Link copied to clipboard
open fun lockdown()
Prevents changing the plugins from then on.
Link copied to clipboard
open fun onCheckMainThread(defaultChecker: BooleanSupplier): Boolean
Returns true if called on the main thread, false if not.
Link copied to clipboard
open fun reset()
Removes all handlers and resets to default behavior.
Link copied to clipboard
open fun setOnCheckMainThread(@Nullable mainThreadChecker: BooleanSupplier)
Sets the preferred main thread checker.