Created
June 12, 2018 20:53
-
-
Save neilbantoc/cc4e2a580c1cb1b258fbb303e480f605 to your computer and use it in GitHub Desktop.
A static function in Kotlin for generating an activity intent
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
companion object { | |
@JvmStatic fun createIntent(context: Context) : Intent { | |
return Intent(context, Activity::class.java); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment