Hi. I wanted to test class delegation and came across a problem i did not know how to solve. I have a fragment which implements an interface. I want to delegate this interface to a class which implements this interface. so far so good. but my implementation of the interface needs some variables e.g. the context. how can i pass variables to this class delegation?
class CustomFragment : Fragment, Interface by InterfaceImpl(context)