com.jess.arms.integration.AppManager Java Examples
The following examples show how to use
com.jess.arms.integration.AppManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 5 votes |
/** * 使用 {@link Snackbar} 长时间显示文本消息 * * @param text */ public static void snackbarTextWithLong(String text) { Message message = new Message(); message.what = SHOW_SNACKBAR; message.obj = text; message.arg1 = 1; AppManager.post(message); }
Example #2
Source File: VideoDetailPresenter.java From LQRBiliBlili with MIT License | 5 votes |
@Inject public VideoDetailPresenter(VideoDetailContract.Model model, VideoDetailContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; RetrofitUrlManager.getInstance().putDomain("video_detail_summary", Api.VIDEO_DETAIL_SUMMARY_BASE_URL); RetrofitUrlManager.getInstance().putDomain("video_detail_reply", Api.VIDEO_DETAIL_REPLY_BASE_URL); }
Example #3
Source File: MainCategoryPresenter.java From LQRBiliBlili with MIT License | 5 votes |
@Inject public MainCategoryPresenter(MainCategoryContract.Model model, MainCategoryContract.View rootView, RxErrorHandler handler, Application application, ImageLoader imageLoader, AppManager appManager) { super(model, rootView); mErrorHandler = handler; mApplication = application; mImageLoader = imageLoader; mAppManager = appManager; }
Example #4
Source File: RecommendPresenter.java From LQRBiliBlili with MIT License | 5 votes |
@Inject public RecommendPresenter(RecommendContract.Model model, RecommendContract.View rootView, RxErrorHandler errorHandler, Application application, ImageLoader imageLoader, AppManager appManager) { super(model, rootView); mErrorHandler = errorHandler; mApplication = application; mImageLoader = imageLoader; mAppManager = appManager; }
Example #5
Source File: MainPresenter.java From LQRBiliBlili with MIT License | 5 votes |
@Inject public MainPresenter(MainContract.Model model, MainContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #6
Source File: LivePresenter.java From LQRBiliBlili with MIT License | 5 votes |
@Inject public LivePresenter(LiveContract.Model model, LiveContract.View rootView, RxErrorHandler errorHandler, Application application, ImageLoader imageLoader, AppManager appManager) { super(model, rootView); mErrorHandler = errorHandler; mApplication = application; mImageLoader = imageLoader; mAppManager = appManager; }
Example #7
Source File: AuthorDetailPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public AuthorDetailPresenter(AuthorDetailContract.Model model, AuthorDetailContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #8
Source File: VideoDetailPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public VideoDetailPresenter(VideoDetailContract.Model model, VideoDetailContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #9
Source File: CategoryPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public CategoryPresenter(CategoryContract.Model model, CategoryContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #10
Source File: VideoListActivityPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public VideoListActivityPresenter(VideoListActivityContract.Model model, VideoListActivityContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #11
Source File: SplashPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public SplashPresenter(SplashContract.Model model, SplashContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #12
Source File: AttentionPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public AttentionPresenter(AttentionContract.Model model, AttentionContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #13
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 5 votes |
/** * 使用 {@link Snackbar} 显示文本消息 * * @param text */ public static void snackbarText(String text) { Message message = new Message(); message.what = SHOW_SNACKBAR; message.obj = text; message.arg1 = 0; AppManager.post(message); }
Example #14
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 5 votes |
/** * 跳转界面 1 ,通过 {@link AppManager#startActivity(Class)} * * @param activityClass */ public static void startActivity(Class activityClass) { Message message = new Message(); message.what = START_ACTIVITY; message.obj = activityClass; AppManager.post(message); }
Example #15
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 5 votes |
/** * 跳转界面 2 ,通过 {@link AppManager#startActivity(Intent)} * * @param */ public static void startActivity(Intent content) { Message message = new Message(); message.what = START_ACTIVITY; message.obj = content; AppManager.post(message); }
Example #16
Source File: SearchPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public SearchPresenter(SearchContract.Model model, SearchContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #17
Source File: VideoPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public VideoPresenter(VideoContract.Model model, VideoContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #18
Source File: HistoryPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public HistoryPresenter(HistoryContract.Model model, HistoryContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #19
Source File: HotPresenter.java From Aurora with Apache License 2.0 | 5 votes |
@Inject public HotPresenter(HotContract.Model model, HotContract.View rootView , RxErrorHandler handler, Application application , ImageLoader imageLoader, AppManager appManager) { super(model, rootView); this.mErrorHandler = handler; this.mApplication = application; this.mImageLoader = imageLoader; this.mAppManager = appManager; }
Example #20
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 4 votes |
/** * 远程遥控 {@link AppManager#appExit()} */ public static void exitApp() { Message message = new Message(); message.what = APP_EXIT; AppManager.post(message); }
Example #21
Source File: ArmsUtils.java From Aurora with Apache License 2.0 | 4 votes |
/** * 远程遥控 {@link AppManager#killAll()} */ public static void killAll() { Message message = new Message(); message.what = KILL_ALL; AppManager.post(message); }
Example #22
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 4 votes |
/** * 执行 {@link AppManager#killAll()} */ public static void killAll() { AppManager.getAppManager().killAll(); }
Example #23
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 4 votes |
/** * 执行 {@link AppManager#appExit()} */ public static void exitApp() { AppManager.getAppManager().appExit(); }
Example #24
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 使用 {@link Snackbar} 显示文本消息 * Arms 已将 com.google.android.material:material 从依赖中移除 (目的是减小 Arms 体积, design 库中含有太多 View) * 因为 Snackbar 在 com.google.android.material:material 库中, 所以如果框架使用者没有自行依赖 com.google.android.material:material * Arms 则会使用 Toast 替代 Snackbar 显示信息, 如果框架使用者依赖了 arms-autolayout 库就不用依赖 com.google.android.material:material 了 * 因为在 arms-autolayout 库中已经依赖有 com.google.android.material:material * * @param text */ public static void snackbarText(String text) { AppManager.getAppManager().showSnackbar(text, false); }
Example #25
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 使用 {@link Snackbar} 长时间显示文本消息 * Arms 已将 com.google.android.material:material 从依赖中移除 (目的是减小 Arms 体积, design 库中含有太多 View) * 因为 Snackbar 在 com.google.android.material:material 库中, 所以如果框架使用者没有自行依赖 com.google.android.material:material * Arms 则会使用 Toast 替代 Snackbar 显示信息, 如果框架使用者依赖了 arms-autolayout 库就不用依赖 com.google.android.material:material 了 * 因为在 arms-autolayout 库中已经依赖有 com.google.android.material:material * * @param text */ public static void snackbarTextWithLong(String text) { AppManager.getAppManager().showSnackbar(text, true); }
Example #26
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 跳转界面 1, 通过 {@link AppManager#startActivity(Class)} * * @param activityClass */ public static void startActivity(Class activityClass) { AppManager.getAppManager().startActivity(activityClass); }
Example #27
Source File: ArmsUtils.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 跳转界面 2, 通过 {@link AppManager#startActivity(Intent)} * * @param */ public static void startActivity(Intent content) { AppManager.getAppManager().startActivity(content); }
Example #28
Source File: AppModule.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 之前 {@link AppManager} 使用 Dagger 保证单例, 只能使用 {@link AppComponent#appManager()} 访问 * 现在直接将 AppManager 独立为单例类, 可以直接通过静态方法 {@link AppManager#getAppManager()} 访问, 更加方便 * 但为了不影响之前使用 {@link AppComponent#appManager()} 获取 {@link AppManager} 的项目, 所以暂时保留这种访问方式 * * @param application * @return */ @Singleton @Provides static AppManager provideAppManager(Application application) { return AppManager.getAppManager().init(application); }
Example #29
Source File: AppComponent.java From MVPArms with Apache License 2.0 | 2 votes |
/** * 用于管理所有 {@link Activity} * 之前 {@link AppManager} 使用 Dagger 保证单例, 只能使用 {@link AppComponent#appManager()} 访问 * 现在直接将 AppManager 独立为单例类, 可以直接通过静态方法 {@link AppManager#getAppManager()} 访问, 更加方便 * 但为了不影响之前使用 {@link AppComponent#appManager()} 获取 {@link AppManager} 的项目, 所以暂时保留这种访问方式 * * @return {@link AppManager} * @deprecated Use {@link AppManager#getAppManager()} instead */ @Deprecated AppManager appManager();
Example #30
Source File: AppComponent.java From Aurora with Apache License 2.0 | votes |
AppManager appManager();