Bu dasturning foydalanuvchi bilan o'zaro aloqada bo'lmagan holda uzoq muddatli


Download 0.76 Mb.
Pdf ko'rish
bet2/2
Sana23.01.2023
Hajmi0.76 Mb.
#1113879
1   2
Bog'liq
Service Jobs WorkManager

JobService
android:permission="android.permission.BIND_JOB_SERVICE" >

val jobScheduler = getSystemService(Context.JOB_SCHEDULER_SERVICEas JobScheduler
val jobInfo = JobInfo.Builder(123, ComponentName(this,DeepJobService::class.java))
val job = jobInfo.setRequiresCharging(false)
.setMinimumLatency(1)
.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY)
.setOverrideDeadline(3*60*1000).build()
jobScheduler.schedule(job)


Firebase JobDispatcher
implementation 'com.firebase:firebase-jobdispatcher:0.8.6'


Download 0.76 Mb.

Do'stlaringiz bilan baham:
1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling