Is this the correct way using `start` and bundle e...
# splitties
s
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
@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
import splitties.intents.start
??
ok i forgot
Copy code
companion object : ActivityIntentSpec<MyActivity, ExtrasSpec> by activitySpec(ExtrasSpec)