• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Params类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: SyncCommentJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public SyncCommentJob(Comment comment) {
    super(new Params(JobPriority.MID)
            .requireNetwork()
            .groupBy(TAG)
            .persist());
    this.comment = comment;
}
 
开发者ID:jshvarts,项目名称:OfflineSampleApp,代码行数:8,代码来源:SyncCommentJob.java


示例2: UploadJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public UploadJob(Context context, String ItemId, Uri uri, NetworkUploaderService service) {
  super(new Params(PRIORITY).requireNetwork());//Cannot persist because URI is not serializable
  this.random = new Random(System.currentTimeMillis());
  this.filename = "UPLOAD_" + new SimpleDateFormat("yyyyMMdd-HHmmss", Locale.getDefault()).format(new Date()) + "-" + random.nextInt()  + "." + UriUtils.extractExtension(context, uri);
  this.weakReference = new WeakReference<>(context);
  this.itemId = ItemId;
  this.uri = uri;
  this.service = service;
  this.retry = 0;
  Log.i(TAG, "CREATED UploadJob for Item["+itemId+"] Uri["+uri.toString()+"]");
}
 
开发者ID:bnsantos,项目名称:android-upload-service,代码行数:12,代码来源:UploadJob.java


示例3: CopyJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public CopyJob(Context context, String itemId, Uri uri) {
  super(new Params(PRIORITY));
  this.random = new Random(System.currentTimeMillis());
  this.itemId = itemId;
  this.uri = uri;
  this.weakReference = new WeakReference<>(context);
  Log.i(TAG, "CREATED CopyJob for Item["+itemId+"] Uri["+uri.toString()+"]");
}
 
开发者ID:bnsantos,项目名称:android-upload-service,代码行数:9,代码来源:CopyJob.java


示例4: UpdateItemJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public UpdateItemJob(PersistenceManager persistenceManager, String id, String url, boolean cloud) {
  super(new Params(PRIORITY));
  this.persistenceManager = persistenceManager;
  this.id = id;
  this.url = url;
  this.cloud = cloud;
}
 
开发者ID:bnsantos,项目名称:android-upload-service,代码行数:8,代码来源:UpdateItemJob.java


示例5: FetchLocationByAddressJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public FetchLocationByAddressJob(String address) {
    super(new Params(JobConstants.PRIORITY_NORMAL)
            .requireNetwork()
            .singleInstanceBy(TAG)
            .addTags(TAG)
    );

    mAddress = address;
}
 
开发者ID:solidgear,项目名称:priority-job-queue,代码行数:10,代码来源:FetchLocationByAddressJob.java


示例6: LogJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public LogJob(String text) {
    super(new Params(0).delayInMs(500));
    this.text = text;
}
 
开发者ID:aksalj,项目名称:africastalking-android,代码行数:5,代码来源:SipStack.java


示例7: TvShowSeasonsFetchJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public TvShowSeasonsFetchJob(int id, String alias) {
    super(new Params(1).requireNetwork().persist());
    mAlias = alias;
    mId = id;
}
 
开发者ID:CrazyDude1994,项目名称:lostfilm-android-client,代码行数:6,代码来源:TvShowSeasonsFetchJob.java


示例8: TvShowDatabaseFetchJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public TvShowDatabaseFetchJob() {
    super(new Params(1).requireNetwork().persist());
}
 
开发者ID:CrazyDude1994,项目名称:lostfilm-android-client,代码行数:4,代码来源:TvShowDatabaseFetchJob.java


示例9: GetPlayingJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public GetPlayingJob() {
    super(new Params(PRIORITY).requireNetwork().persist());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:GetPlayingJob.java


示例10: PressBackJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public PressBackJob() {
    super(new Params(PRIORITY).requireNetwork());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:PressBackJob.java


示例11: SelectEpisodeJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public SelectEpisodeJob(int season, int episode) {
    super(new Params(PRIORITY).requireNetwork());
    this.season = season;
    this.episode = episode;
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:6,代码来源:SelectEpisodeJob.java


示例12: ShowAboutJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public ShowAboutJob() {
    super(new Params(PRIORITY).requireNetwork().persist());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:ShowAboutJob.java


示例13: SetSelectionJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public SetSelectionJob(String index) {
    super(new Params(PRIORITY).requireNetwork().persist());
    this.index = index;
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:5,代码来源:SetSelectionJob.java


示例14: GetViewStackJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public GetViewStackJob() {
    super(new Params(PRIORITY).requireNetwork());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:GetViewStackJob.java


示例15: PingJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public PingJob() {
    super(new Params(PRIORITY).requireNetwork().persist());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:PingJob.java


示例16: PressRightJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public PressRightJob() {
    super(new Params(PRIORITY).requireNetwork());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:PressRightJob.java


示例17: ShowFavouritesJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public ShowFavouritesJob() {
    super(new Params(PRIORITY).requireNetwork().persist());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:ShowFavouritesJob.java


示例18: GetSelectionJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public GetSelectionJob(int index) {
    super(new Params(PRIORITY).requireNetwork());
    this.index = index;
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:5,代码来源:GetSelectionJob.java


示例19: TogglePlayJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public TogglePlayJob() {
    super(new Params(PRIORITY).requireNetwork());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:TogglePlayJob.java


示例20: MoviesListJob

import com.birbit.android.jobqueue.Params; //导入依赖的package包/类
public MoviesListJob() {
    super(new Params(PRIORITY).requireNetwork());
}
 
开发者ID:anikraj1994,项目名称:Remote,代码行数:4,代码来源:MoviesListJob.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LibraryEx类代码示例发布时间:2022-05-23
下一篇:
Java AutoLinkNode类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap