public final class RxAndroidPlugins extends Object
register methods in this class| Modifier and Type | Method and Description |
|---|---|
static RxAndroidPlugins |
getInstance()
|
RxAndroidSchedulersHook |
getSchedulersHook()
Retrieves the instance of
RxAndroidSchedulersHook to use based on order of precedence as defined in the
RxAndroidPlugins class header.
|
void |
registerSchedulersHook(RxAndroidSchedulersHook
Registers an
RxAndroidSchedulersHook implementation as a global override of any injected or default implementations.
|
void |
reset()
Reset any explicit or default-set hooks.
|
public static RxAndroidPluginsgetInstance()
@Beta public void reset()
Note: This should only be used for testing purposes.
public RxAndroidSchedulersHookgetSchedulersHook()
RxAndroidSchedulersHook to use based on order of precedence as defined in the
RxAndroidPlugins class header.
Override the default by calling registerSchedulersHook(RxAndroidSchedulersHook) or by setting the property rxandroid.plugin.RxAndroidSchedulersHook.implementation with the full classname to load.
public void registerSchedulersHook(RxAndroidSchedulersHookimpl)
RxAndroidSchedulersHook implementation as a global override of any injected or default implementations.
IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)