In order to implement the event callback mechanism,
the Observer Pattern is implemented by "Flash Section".
This idea is novel, But what are the advantages of this method compared to the traditional method?
Code efficiency? Decoupling ?
In order to implement the event callback mechanism,
the Observer Pattern is implemented by "Flash Section".
This idea is novel, But what are the advantages of this method compared to the traditional method?
Code efficiency? Decoupling ?
Hello,
I'd say the main advantage is the ease of use and decoupling of code. When set-up correctly you can import SDK modules such as Fstorage and Peer manager and don't have to worry about event forwarding. It is also quick and easy to add new event "subscribers" to your own code.
Here are a couple of relevant doc links for reference:
Thank you very much for your answer, thanks!
Thank you very much for your answer, thanks!