Skip to content

Instantly share code, notes, and snippets.

@albodelu
Forked from Atternatt/OtherExamples.kt
Created September 21, 2017 04:55
Show Gist options
  • Select an option

  • Save albodelu/2ec63e88152ff8f0000a6007c21f59d5 to your computer and use it in GitHub Desktop.

Select an option

Save albodelu/2ec63e88152ff8f0000a6007c21f59d5 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