Sergio Crespo Toubes
02/11/2020, 3:16 PMstart
and bundle extras with BundleSpec
?
start<MyActivity> {
MyActivity.ExtrasSpec.weight = weight
MyActivity.ExtrasSpec.height = height
}
louiscad
02/11/2020, 3:50 PMstart(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-exampleSergio Crespo Toubes
02/11/2020, 3:58 PMimport splitties.intents.start
??Sergio Crespo Toubes
02/11/2020, 4:08 PMcompanion object : ActivityIntentSpec<MyActivity, ExtrasSpec> by activitySpec(ExtrasSpec)