public final class RxAndroidPlugins
extends java.lang.Object
register
methods in this classModifier 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. |
void |
reset()
Reset any explicit or default-set hooks.
|
public static RxAndroidPlugins getInstance()
@Beta public void reset()
Note: This should only be used for testing purposes.
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)