https://kotlinlang.org logo
#splitties
Title
# splitties
s

Sergio Crespo Toubes

02/11/2020, 3:16 PM
Is this the correct way using
start
and bundle extras with
BundleSpec
?
Copy code
start<MyActivity> {
    MyActivity.ExtrasSpec.weight = weight
    MyActivity.ExtrasSpec.height = height
}
l

louiscad

02/11/2020, 3:50 PM
@Sergio Crespo Toubes Nope. The correct way is:
Copy code
start(MyActivity) { _, extrasSpec ->
    extrasSpec.weight = weight
    extrasSpec.weight = weight
}
You can see an example here: https://github.com/LouisCAD/Splitties/blob/master/modules/intents/README.md#intentspec-example
s

Sergio Crespo Toubes

02/11/2020, 3:58 PM
import splitties.intents.start
??
ok i forgot
Copy code
companion object : ActivityIntentSpec<MyActivity, ExtrasSpec> by activitySpec(ExtrasSpec)
3 Views