android.util.Base64 encode/decode flags parameter
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;