This file contains hidden or 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 com.example.android.jobscheduler.service; | |
| import android.app.job.JobParameters; | |
| import android.app.job.JobService; | |
| import android.content.Intent; | |
| public class SyncJobService extends JobService { | |
| ArtworkDownloader mDownloader; | |
| @Override |
This file contains hidden or 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
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.support.v4.app.JobIntentService; | |
| import android.util.Log; | |
| import android.widget.Toast; | |
| import | |
| /** | |
| * Example implementation of a JobIntentService. | |
| */ | |
| public class UpdateJobIntentService extends JobIntentService { |
This file contains hidden or 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
| interface Heater { | |
| fun on() | |
| fun off() | |
| fun isHot() : Boolean | |
| } | |
| class ElectricHeater(var heating: Boolean = false) : Heater { | |
| override fun on() { | |
| println("~ ~ ~ heating ~ ~ ~") | |
| heating = true |
OlderNewer