【IApplication】基于MVP+Dagger2+Retrofit+Rxjava框架之IApplication

来源:互联网 发布:焦点堆叠软件 编辑:程序博客网 时间:2024/05/16 06:16

封装要点

  • 获取本类实例提供外界访问getInstance();
private static IApplication sInstance;//本类//onCreate()里sInstance = this;//方法public static IApplication getInstance(){        return sInstance;    }
阅读全文
0 0
原创粉丝点击