本文整理汇总了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;未经允许,请勿转载。 |
请发表评论