D2Manager
Helper class that offers static methods to setup and initialize the D2 instance. Also, it ensures that D2 is a singleton across the application.
Functions
Instantiates D2 with the provided configuration. This is a blocking method. If you are using RxJava, use D2Manager.instantiateD2 instead.
Returns the D2 instance, given that it has already been initialized using the D2Manager.instantiateD2 method.
Instantiates D2 with the provided configuration. If you are not using RxJava, use D2Manager.blockingInstantiateD2 instead.
Returns if D2 has already been instantiated using the D2Manager.instantiateD2 method.
Instantiates D2 with the provided configuration. If you are not using RxJava, use D2Manager.blockingInstantiateD2 or D2Manager.suspendInstantiateD2 instead.
Instantiates D2 with the provided configuration. This is a suspend function.