ClaudiuB
11/09/2018, 5:58 AMStateful by state() part of this should be interpreted? class MySuperCoolActivity : Activity(), Stateful by state() and state() is a global functionkarelpeeters
11/09/2018, 6:43 AMStateful?hho
11/09/2018, 8:25 AMStateful is an interface, and MySuperCoolActivity implements that interface by delegating all calls to whatever state() returns.ClaudiuB
11/09/2018, 8:39 AMstate() is a function that returns an implementation of state(). The example I was looking at showed that you could then call functions of Stateful in your MySuperCoolActivity. Means you can offload implementation of interfaces to other classes while still keeping the ability to directly call the functions, neat!