Created
March 23, 2018 02:55
-
-
Save ThrowJojo/67b99795706b997a1af850b2c608a2fb to your computer and use it in GitHub Desktop.
TaskService class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testing.jobdispatcher | |
import android.util.Log | |
import com.firebase.jobdispatcher.JobParameters | |
import com.firebase.jobdispatcher.JobService | |
class TaskService : JobService() { | |
override fun onStartJob(job: JobParameters?): Boolean { | |
Log.e(TaskService::class.java.name, "START JOB") | |
return false | |
} | |
override fun onStopJob(job: JobParameters?): Boolean { | |
// Return whether job should be retried or not | |
return false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment