According to the Javadoc, android.util.Base64.decode() takes two parameters: the text, and \"flags\". These flags are in int form and (I quote):
flags controls ce
For kotlin
you can use
val flag = Base64.URL_SAFE or Base64.NO_WRAP
int flags passed to functions are usually defined to be bitwise ORed to achieve a combined effect.
You can usually tell by looking at the constant values, they would go 0 1 2 4 8 16 ..
As for your question you can use the following for your flag definition:
int flags = Base64.NO_WRAP | Base64.URL_SAFE;