Marco Pierucci
07/31/2023, 2:16 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
formNavigator.launchCamera(copy())
for example, worksFieldSetInfo.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>()
Marco Pierucci
07/31/2023, 2:22 PM