本文整理匯總了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);
}