本文整理汇总了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)));
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}