Skip to content

Instantly share code, notes, and snippets.

@Atternatt
Last active September 21, 2017 04:55
Show Gist options
  • Save Atternatt/ad738026840c3f15e6340cfbcda07e83 to your computer and use it in GitHub Desktop.
Save Atternatt/ad738026840c3f15e6340cfbcda07e83 to your computer and use it in GitHub Desktop.
Kotlin Extension Usages
bundle?.let { intent.putExtras(it) } //si el bundle no es null, lo añadimos como extra al intent
//crear un animationSet al estilo builder
val animationSet = AnimatorSet().apply {
playTogether(animX, animY)
duration = 350
interpolator = FolioBounceInterpolator()
}.start()
val cipherInputStream = CipherInputStream(ByteArrayInputStream(Base64.decode(encriptedValue, Base64.DEFAULT)), output)
val readResult = cipherInputStream.bufferedReader().use { it.readText() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment