Marco Pierucci
07/31/2023, 2:16 PMMarco Pierucci
07/31/2023, 2:17 PMcontext(FieldSetInfo.Component, BeFormFieldComposer)
fun camera() : TrailingIcon {
return TrailingIcon(
type = TrailingIcon.Type.CAMERA,
onClicked = {
formNavigator.launchCamera(this)
}
)
}
If I do this I get this is not defined in this context
Marco Pierucci
07/31/2023, 2:17 PMformNavigator.launchCamera(copy())
for example, worksMarco Pierucci
07/31/2023, 2:18 PMFieldSetInfo.Component
context here?Youssef Shoaib [MOD]
07/31/2023, 2:21 PMthis@Something
, although I'm not sure whether the something would be Component
or FieldSetInfo
Marco Pierucci
07/31/2023, 2:21 PMthis@camera
is of the type I want as per the IDE autocomplete but I get the same error messageYoussef Shoaib [MOD]
07/31/2023, 2:22 PMcontext(A) fun <A> given(): A = this@A
like this: given<FieldSetInfo.Component>()
Youssef Shoaib [MOD]
07/31/2023, 2:22 PMMarco Pierucci
07/31/2023, 2:22 PMMarco Pierucci
07/31/2023, 2:25 PM