public final class RxAndroidPlugins
extends java.lang.Object
register
methods in this classSystem.getProperty(String)
(see get methods
for property names)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 impl)
Registers an
RxAndroidSchedulersHook implementation as a global override of any
injected or default implementations. |
public static RxAndroidPlugins getInstance()
public RxAndroidSchedulersHook getSchedulersHook()
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(RxAndroidSchedulersHook impl)
RxAndroidSchedulersHook
implementation as a global override of any
injected or default implementations.java.lang.IllegalStateException
- if called more than once or after the default was initialized
(if usage occurs before trying to register)