当前位置: 首页>>代码示例>>Java>>正文


Java Bundler类代码示例

本文整理汇总了Java中com.fastaccess.helper.Bundler的典型用法代码示例。如果您正苦于以下问题:Java Bundler类的具体用法?Java Bundler怎么用?Java Bundler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Bundler类属于com.fastaccess.helper包,在下文中一共展示了Bundler类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onCreate() {
    super.onCreate();
    String floatingMode = PrefHelper.getString(PrefConstant.FLOATING_MODE);
    if (!InputHelper.isEmpty(floatingMode)) {
        switch (floatingMode) {
            case "Apps":
                floatingVHView = FloatingVHView.with(this, PrefConstant.isHorizontal());
                break;
            case "Folders":
                floatingFoldersView = FloatingFoldersView.with(this, PrefConstant.isHorizontal());
                break;
        }
    } else {
        floatingVHView = FloatingVHView.with(this, PrefConstant.isHorizontal());
    }
    Intent stopServiceIntent = new Intent(this, FloatingService.class);
    stopServiceIntent.putExtras(Bundler.start().put(STOP_FLAG, true).end());
    startForeground(NotificationHelper.NOTIFICATION_ID,
            NotificationHelper.getNonCancellableNotification(this, getString(R.string.app_name), getString(R.string.click_to_open_fa),
                    PrefHelper.getBoolean(PrefConstant.STATUS_BAR_HIDDEN) ? R.drawable.ic_notification : R.drawable.ic_fa_notification,
                    PendingIntent.getActivity(this, 0, new Intent(this, MainView.class), PendingIntent.FLAG_UPDATE_CURRENT),
                    PendingIntent.getService(this, 0, stopServiceIntent, PendingIntent.FLAG_UPDATE_CURRENT)));
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:24,代码来源:FloatingService.java

示例2: onOpenDetails

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onOpenDetails(@NonNull View v, @NonNull AppsModel item) {
    if (v.getId() != R.id.appIcon) {
        v.findViewById(R.id.appIcon).callOnClick();
        return;
    }
    String transitionName = "appIcon";//hardcoded!!
    Intent intent = new Intent(this, AppDetailsView.class);
    intent.putExtras(Bundler.start().put("app", item).end());
    ActivityHelper.start(this, intent, v, transitionName);
}
 
开发者ID:k0shk0sh,项目名称:NewKam,代码行数:11,代码来源:MainView.java

示例3: onShare

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onShare(@NonNull Context context, @NonNull AppsModel app) {
    Intent intent = new Intent(context, ExtractorService.class);
    intent.putExtras(Bundler.start()
            .put("src", getView().getApkFile())
            .put("name", app.getAppName())
            .put("isForShare", true)
            .end());
    context.startService(intent);
}
 
开发者ID:k0shk0sh,项目名称:NewKam,代码行数:10,代码来源:AppDetailsPresenter.java

示例4: onExtract

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onExtract(@NonNull Context context, @NonNull AppsModel app) {
    Intent intent = new Intent(context, ExtractorService.class);
    intent.putExtras(Bundler.start()
            .put("src", getView().getApkFile())
            .put("name", app.getAppName())
            .end());
    context.startService(intent);
}
 
开发者ID:k0shk0sh,项目名称:NewKam,代码行数:9,代码来源:AppDetailsPresenter.java

示例5: newInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
public static IntroPageView newInstance(@StringRes int titleRes, @DrawableRes int drawableRes, @StringRes int descriptionRes) {
    IntroPageView pageView = new IntroPageView();
    pageView.setArguments(Bundler
            .start()
            .put("titleRes", titleRes)
            .put("drawableRes", drawableRes)
            .put("descriptionRes", descriptionRes)
            .end());
    return pageView;
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:11,代码来源:IntroPageView.java

示例6: newInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@NonNull public static MessageDialogView newInstance(@StringRes int bundleTitle, @StringRes int bundleMsg, int requestCode) {
    MessageDialogView messageDialogView = new MessageDialogView();
    messageDialogView.setArguments(Bundler
            .start()
            .put("bundleTitle", bundleTitle)
            .put("bundleMsg", bundleMsg)
            .put("requestCode", requestCode)
            .end());
    return messageDialogView;
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:11,代码来源:MessageDialogView.java

示例7: getInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
public static PermissionsView getInstance(@NonNull String permissionName) {
    PermissionsView fragment = new PermissionsView();
    fragment.setArguments(Bundler.start().put("permission", permissionName).end());
    return fragment;
}
 
开发者ID:k0shk0sh,项目名称:NewKam,代码行数:6,代码来源:PermissionsView.java

示例8: onBackupRestore

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onBackupRestore(int backupType, @NonNull MainView mainView) {
    Intent intent = new Intent(mainView, LoginView.class);
    intent.putExtras(Bundler.start().put(LoginView.TYPE, backupType).end());
    mainView.startActivity(intent);
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:6,代码来源:MainPresenter.java

示例9: onRestoreFromUserId

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
@Override public void onRestoreFromUserId(@NonNull String userId) {
    Bundle bundle = Bundler.start().put(RestoreView.USER_ID_INTENT, userId).end();
    Intent intent = new Intent(this, RestoreView.class);
    intent.putExtras(bundle);
    startActivity(intent);
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:7,代码来源:MainView.java

示例10: newInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
public static IconSizeTransparencyDialog newInstance(boolean isBackground) {
    IconSizeTransparencyDialog dialog = new IconSizeTransparencyDialog();
    dialog.setArguments(Bundler.start().put("isBackground", isBackground).end());
    return dialog;
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:6,代码来源:IconSizeTransparencyDialog.java

示例11: newInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
public static SelectFolderAppsView newInstance(long folderId) {
    SelectFolderAppsView view = new SelectFolderAppsView();
    view.setArguments(Bundler.start().put("folderId", folderId).end());
    return view;
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:6,代码来源:SelectFolderAppsView.java

示例12: newInstance

import com.fastaccess.helper.Bundler; //导入依赖的package包/类
public static CreateFolderView newInstance(long folderId) {
    CreateFolderView view = new CreateFolderView();
    view.setArguments(Bundler.start().put("folderId", folderId).end());
    return view;
}
 
开发者ID:k0shk0sh,项目名称:FastAccess,代码行数:6,代码来源:CreateFolderView.java


注:本文中的com.fastaccess.helper.Bundler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。