Newer
Older
RxFlux / app / src / main / java / j4ckall / rxflux / App.java
KeijuMatsumoto on 2 Dec 2017 550 bytes [add] Counter
package j4ckall.rxflux;

import android.app.Application;

import j4ckall.rxflux.lib.flux.Dispatcher;

/**
 * Application Class
 *
 * @author matsumoto_k
 */
public class App extends Application {

    private static App instance = null;
    private static final Dispatcher dispatcher = new Dispatcher();

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public static App get() {
        return instance;
    }

    public static Dispatcher getDispatcher() {
        return dispatcher;
    }
}