Created
January 24, 2019 19:03
-
-
Save aanandshekharroy/dbf1a707e136f8aaa96ad91418f442b1 to your computer and use it in GitHub Desktop.
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
class RandomNumberGeneratorService:Service() { | |
val binder: IBinder = RandomNumberGeneratorServiceBinder() | |
inner class RandomNumberGeneratorServiceBinder : Binder(){ | |
val service: RandomNumberGeneratorService = this@RandomNumberGeneratorService | |
} | |
override fun onBind(intent: Intent): IBinder { | |
return binder | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment