本文整理汇总了Java中android.app.job.JobService类的典型用法代码示例。如果您正苦于以下问题:Java JobService类的具体用法?Java JobService怎么用?Java JobService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JobService类属于android.app.job包,在下文中一共展示了JobService类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CleanUpStorageTask
import android.app.job.JobService; //导入依赖的package包/类
/**
* Creates a recurring storage cleaning task.
*
* @param context {@link Context}
* @param jobService {@link JobService}
*/
public CleanUpStorageTask(Context context, JobService jobService) {
mContext = context;
mDvrStorageStatusManager =
TvApplication.getSingletons(mContext).getDvrStorageStatusManager();
mJobService = jobService;
mContentResolver = mContext.getContentResolver();
}
示例2: SyncTask
import android.app.job.JobService; //导入依赖的package包/类
public SyncTask(JobService jobService) {
this.jobService = jobService;
}
示例3: EventListener
import android.app.job.JobService; //导入依赖的package包/类
public EventListener(JobService service, JobParameters jobParameters, EventBus bus) {
this.service = service;
this.jobParameters = jobParameters;
this.bus = bus;
}
示例4: DownloadTask
import android.app.job.JobService; //导入依赖的package包/类
public DownloadTask(JobService jobService) {
this.jobService = jobService;
}
示例5: JobManager
import android.app.job.JobService; //导入依赖的package包/类
public JobManager(final int id, @NonNull final Class<? extends JobService> cls) {
mId = id;
final ComponentName componentName = new ComponentName(ContextHelper.applicationContext(), cls.getClass());
mBuilder = new JobInfo.Builder(id, componentName);
}