Bubbling up events .

后端 未结 6 2253
天涯浪人
天涯浪人 2020-12-08 07:46

I have multiple layers in an application and i find myself having to bubble up events to the GUI layer for doing status bar changes, etc . . I find myself having to write re

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 08:35

    You can have a central channel that only support events. This channel must be independent so the layer only publish or subscribe to it.

提交回复
热议问题